Property | Type | Description | |
---|---|---|---|
_enableLimit | bool | ||
_enableMotor | bool | ||
_impulse | Vec3 | ||
_limitState | LimitState | ||
_localAnchor1 | Vec2 | ||
_localAnchor2 | Vec2 | ||
_lowerAngle | float | ||
_mass | Mat33 | ||
_maxMotorTorque | float | ||
_motorImpulse | float | ||
_motorMass | float | ||
_motorSpeed | float | ||
_referenceAngle | float | ||
_upperAngle | float |
Method | Description | |
---|---|---|
EnableLimit ( bool flag ) : void |
Enable/disable the joint limit.
|
|
EnableMotor ( bool flag ) : void |
Enable/disable the joint motor.
|
|
GetReactionForce ( float inv_dt ) : |
||
GetReactionTorque ( float inv_dt ) : float | ||
RevoluteJoint ( RevoluteJointDef def ) : System | ||
SetLimits ( float lower, float upper ) : void |
Set the joint limits in radians.
|
|
SetMaxMotorTorque ( float torque ) : void |
Set the maximum motor torque, usually in N-m.
|
Method | Description | |
---|---|---|
InitVelocityConstraints ( |
||
SolvePositionConstraints ( float baumgarte ) : bool | ||
SolveVelocityConstraints ( TimeStep step ) : void |
public GetReactionForce ( float inv_dt ) : |
||
inv_dt | float | |
return |
public GetReactionTorque ( float inv_dt ) : float | ||
inv_dt | float | |
return | float |
public RevoluteJoint ( RevoluteJointDef def ) : System | ||
def | RevoluteJointDef | |
return | System |
public SetLimits ( float lower, float upper ) : void | ||
lower | float | |
upper | float | |
return | void |
public SetMaxMotorTorque ( float torque ) : void | ||
torque | float | |
return | void |