Joint
Base class for all joints. A joint connects two bodies and constrains their relative motion.
Type-specific functions are prefixed with the joint type name. Calling a type-specific function on the wrong joint type will result in undefined behavior.
Properties
Get the current angular separation for this joint.
Whether connected bodies should collide.
Get the current constraint force for this joint, usually in Newtons.
Get the current constraint torque for this joint, usually in Newton-meters.
Get the current linear separation for this joint.
The local anchor point on body A.
The local anchor point on body B.
The local axis A for joints that use it (prismatic, wheel).
The reference angle for joints that use it (revolute, prismatic, weld).
Functions
Enable/disable the distance joint length limit.
Enable/disable the distance joint motor.
Enable/disable the distance joint spring.
Get the current distance joint length.
Get the rest length of a distance joint.
Get the distance joint maximum length.
Get the distance joint maximum motor force, usually in Newtons.
Get the distance joint minimum length.
Get the distance joint current motor force, usually in Newtons.
Get the distance joint motor speed, usually in meters per second.
Get the distance joint spring damping ratio (dimensionless).
Get the distance joint spring stiffness in Hertz.
Is the distance joint length limit enabled?
Is the distance joint motor enabled?
Is the distance joint spring enabled?
Set the rest length of a distance joint.
Set the distance joint length range minLength, maxLength.
Set the distance joint maximum motor force, usually in Newtons.
Set the distance joint motor speed, usually in meters per second.
Set the distance joint spring damping ratio (dimensionless).
Set the distance joint spring stiffness in Hertz.
Get the constraint tuning for this joint.
Get the motor joint angular offset target in radians.
Get the motor joint correction factor, usually in 0, 1.
Get the motor joint linear offset target.
Get the motor joint maximum force, usually in Newtons.
Get the motor joint maximum torque, usually in Newton-meters.
Set the motor joint angular offset target in radians.
Set the motor joint correction factor, usually in 0, 1.
Set the motor joint linear offset target.
Set the motor joint maximum force, usually in Newtons.
Set the motor joint maximum torque, usually in Newton-meters.
Get the mouse joint maximum force, usually in Newtons.
Get the mouse joint spring damping ratio (dimensionless).
Get the mouse joint spring stiffness in Hertz.
Get the mouse joint target.
Set the mouse joint maximum force, usually in Newtons.
Set the mouse joint spring damping ratio (dimensionless).
Set the mouse joint spring stiffness in Hertz.
Set the mouse joint target.
Enable/disable the prismatic joint limit.
Enable/disable the prismatic joint motor.
Enable/disable the prismatic joint spring.
Get the prismatic joint lower limit.
Get the prismatic joint maximum motor force, usually in Newtons.
Get the prismatic joint current motor force, usually in Newtons.
Get the prismatic joint motor speed, usually in meters per second.
Get the current prismatic joint speed.
Get the prismatic joint spring damping ratio (dimensionless).
Get the prismatic joint spring stiffness in Hertz.
Get the prismatic joint target translation.
Get the current prismatic joint translation.
Get the prismatic joint upper limit.
Is the prismatic joint limit enabled?
Is the prismatic joint motor enabled?
Is the prismatic joint spring enabled?
Set the prismatic joint limits.
Set the prismatic joint maximum motor force, usually in Newtons.
Set the prismatic joint motor speed, usually in meters per second.
Set the prismatic joint spring damping ratio (dimensionless).
Set the prismatic joint spring stiffness in Hertz.
Set the prismatic joint target translation.
Enable/disable the revolute joint limit.
Enable/disable the revolute joint motor.
Enable/disable the revolute joint spring.
Get the revolute joint current angle in radians.
Get the revolute joint lower limit in radians.
Get the revolute joint maximum motor torque, usually in Newton-meters.
Get the revolute joint motor speed in radians per second.
Get the revolute joint current motor torque, usually in Newton-meters.
Get the revolute joint spring damping ratio (dimensionless).
Get the revolute joint spring stiffness in Hertz.
Get the revolute joint target angle in radians.
Get the revolute joint upper limit in radians.
Is the revolute joint limit enabled?
Is the revolute joint motor enabled?
Is the revolute joint spring enabled?
Set the revolute joint limits in radians.
Set the revolute joint maximum motor torque, usually in Newton-meters.
Set the revolute joint motor speed in radians per second.
Set the revolute joint spring damping ratio (dimensionless).
Set the revolute joint spring stiffness in Hertz.
Set the revolute joint target angle in radians.
Set the constraint tuning for this joint.
Wake up the connected bodies.
Get the weld joint angular damping ratio (dimensionless).
Get the weld joint angular stiffness in Hertz.
Get the weld joint linear damping ratio (dimensionless).
Get the weld joint linear stiffness in Hertz.
Set the weld joint angular damping ratio (dimensionless).
Set the weld joint angular stiffness in Hertz. 0 is rigid.
Set the weld joint linear damping ratio (dimensionless).
Set the weld joint linear stiffness in Hertz. 0 is rigid.
Enable/disable the wheel joint limit.
Enable/disable the wheel joint motor.
Enable/disable the wheel joint spring.
Get the wheel joint lower limit.
Get the wheel joint maximum motor torque, usually in Newton-meters.
Get the wheel joint motor speed in radians per second.
Get the wheel joint current motor torque, usually in Newton-meters.
Get the wheel joint spring damping ratio (dimensionless).
Get the wheel joint spring stiffness in Hertz.
Get the wheel joint upper limit.
Is the wheel joint limit enabled?
Is the wheel joint motor enabled?
Is the wheel joint spring enabled?
Set the wheel joint limits.
Set the wheel joint maximum motor torque, usually in Newton-meters.
Set the wheel joint motor speed in radians per second.
Set the wheel joint spring damping ratio (dimensionless).
Set the wheel joint spring stiffness in Hertz.