Class HingeJoint3D
Inherited Members
Namespace: Motphys.Rigidbody
Assembly: solution.dll
Syntax
public class HingeJoint3D : BaseJoint
Properties
angle
Declaration
public float angle { get; }
Property Value
Type | Description |
---|---|
System.Single | The angle of the hinge joint in degrees. |
angularLimit
Declaration
public JointAngularLimit angularLimit { get; set; }
Property Value
Type | Description |
---|---|
JointAngularLimit | The angle limit range of the hinge joint. Only works when useLimit is true. Valid range is [-180,180]. |
currentMotorTorque
Declaration
public float currentMotorTorque { get; }
Property Value
Type | Description |
---|---|
System.Single | The magnitude of the current motor torque applied to the joint. The direction of the torque is always along the hinge axis. |
limitSpring
Declaration
public SpringDamper limitSpring { get; set; }
Property Value
Type | Description |
---|---|
SpringDamper | The spring used to limit the rotation. |
motor
Declaration
public AngularMotor motor { get; set; }
Property Value
Type | Description |
---|---|
AngularMotor | The configuration of the motor drive. |
useLimit
Declaration
public bool useLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Whether enable the limit constraint of the hinge joint. |
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. |