Enable/disable the joint limit.
True to enable, false to disable.
Enable/disable the joint motor.
True to enable, false to diasable.
Get the anchor point on bodyA in world coordinates.
Body A anchor.
Get the anchor point on bodyB in world coordinates.
Body B anchor.
Get the first body attached to this joint.
Body A.
Get the second body attached to this joint.
Body B.
Get the current joint angle in radians.
Joint angle.
Get the current joint angle speed in radians per second.
Joint speed.
Get the lower joint limit in radians.
Lower limit.
Get the motor speed in radians per second.
Motor speed.
Get the current motor torque, usually in N-m.
Motor torque.
Get the next joint the world joint list.
Next joint.
Get the reaction force on body2 at the joint anchor in N.
Reaction force in N.
Get the reaction torque on body 2 in N.
Reaction torque in N.
Get the type of the concrete joint.
Joint type.
Get the upper joint limit in radians.
Upper limit.
Get the user data pointer.
User data. Cast to your data type.
Short-cut function to determine if either body is inactive.
True if active, otherwise false.
Is the joint limit enabled?
True if enabled, false if disabled.
Is the joint motor enabled?
True if enabled, false if disabled.
Set the joint limits in radians.
New lower limit.
New upper limit.
Set the maximum motor torque, usually in N-m.
New max torque.
Set the motor speed in radians per second.
New motor speed.
Set the user data pointer.
Your custom data.
Generated using TypeDoc
A revolute joint constrains to bodies to share a common point while they are free to rotate about the point. The relative rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is provided so that infinite forces are not generated.