Class BallJoint3D
Inherited Members
Namespace: Motphys.Rigidbody
Assembly: solution.dll
Syntax
public class BallJoint3D : BaseJoint
Properties
angularDamper
Declaration
public float angularDamper { get; set; }
Property Value
Type | Description |
---|---|
System.Single | Angular damper, higher value means greater deceleration. |
limitSpring
Declaration
public SpringDamper limitSpring { get; set; }
Property Value
Type | Description |
---|---|
SpringDamper | The spring used to limit the twist and swing angles. |
motor
Declaration
public D3AngularMotor motor { get; set; }
Property Value
Type | Description |
---|---|
D3AngularMotor | The motor used to drive the twist and swing angles. |
swingLimit
Declaration
public float swingLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The swing limit of y-axis, z-axis, with range [0,180] |
twistLimit
Declaration
public JointAngularLimit twistLimit { get; set; }
Property Value
Type | Description |
---|---|
JointAngularLimit | Used to limit the twist angle. The twist axis is defined by the anchor frame's x axis. |
useMotor
Declaration
public bool useMotor { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Whether to use a motor. |
useSpring
Declaration
public bool useSpring { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Whether this joint uses a spring. If false, the spring will be infinity stiffness and 0 damper. |