A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in body1. Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction.
Enable/disable the joint limit.
True to enable, false to disable.
Enable/disable the joint motor.
True to enable, false to disable.
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 translation speed, usually in meters per second.
number
Joint speed.
Get the current joint translation, usually in meters.
number
Joint translation.
Get the lower joint limit, usually in meters.
number
Lower limit.
Get the current motor force, usually in N.
number
Motor force.
Get the motor speed, usually in meters per second.
number
Motor speed.
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.
number
Reaction torque in N.
Get the type of the concrete joint.
number
Joint type.
Get the upper joint limit, usually in meters.
number
Upper limit.
Get the user data pointer.
any
User data. Cast to your data type.
Short-cut function to determine if either body is inactive.
boolean
True if active, otherwise false.
Is the joint limit enabled?
boolean
True if enabled otherwise false.
Is the joint motor enabled?
boolean
True if enabled, otherwise false.
Set the joint limits, usually in meters.
Lower limit.
Upper limit.
Set the maximum motor force, usually in N.
New max force.
Set the motor speed, usually in meters per second.
New motor speed.
Set the user data pointer.
Your custom data.