Class SliderJoint3D
Inherited Members
Namespace: Motphys.Rigidbody
Assembly: solution.dll
Syntax
public class SliderJoint3D : BaseJoint
Properties
currentDistance
Declaration
public float currentDistance { get; }
Property Value
Type | Description |
---|---|
System.Single | Current distance between two rigidbodies. |
currentMotorForce
Declaration
public float currentMotorForce { get; }
Property Value
Type | Description |
---|---|
System.Single | The magnitude of the current motor force applied to the joint. The direction of the force is always along the slider axis. |
distanceLimit
Declaration
public JointTranslationLimit distanceLimit { get; set; }
Property Value
Type | Description |
---|---|
JointTranslationLimit | The distance limit along the slider axis. Can be negative. |
limitSpring
Declaration
public SpringDamper limitSpring { get; set; }
Property Value
Type | Description |
---|---|
SpringDamper | The spring used to restrict bodies in limit range. Only works when useLimit is true. |
motor
Declaration
public LinearMotor motor { get; set; }
Property Value
Type | Description |
---|---|
LinearMotor | Full configuration of the motor drive. |
useLimit
Declaration
public bool useLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | If enabled, the distance between the two bodies will be restricted to the range [minDistance, maxDistance]. |
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. |