A universal joint constrains two rigid bodies' constraint axes to be perpendicular to each other. Rigid bodies can rotate along their constraint axes, but cannot along the direction perpendicular to two constraint axes. This joint provides two degrees of freedom. You can enable lower and upper limits, motors, spring and damper effects of the two rotational constraints.
Constructor
Methods
inlinegetAxis1To(axis:Vec3):Void
Sets axis
to the first rigid body's constraint axis in world coordinates.
This does not create a new instance of Vec3
.
inlinegetAxis2To(axis:Vec3):Void
Sets axis
to the second rigid body's constraint axis in world coordinates.
This does not create a new instance of Vec3
.
inlinegetLimitMotor1():RotationalLimitMotor
Returns the rotational limits and motor settings along the first body's constraint axis.
inlinegetLimitMotor2():RotationalLimitMotor
Returns the rotational limits and motor settings along the second body's constraint axis.
inlinegetLocalAxis1():Vec3
Returns the first rigid body's constraint axis relative to the rigid body's transform.
inlinegetLocalAxis1To(axis:Vec3):Void
Sets axis
to the first rigid body's constraint axis relative to the rigid body's transform.
This does not create a new instance of Vec3
.
inlinegetLocalAxis2():Vec3
Returns the second rigid body's constraint axis relative to the rigid body's transform.
inlinegetLocalAxis2To(axis:Vec3):Void
Sets axis
to the second rigid body's constraint axis relative to the rigid body's transform.
This does not create a new instance of Vec3
.
inlinegetSpringDamper1():SpringDamper
Returns the rotational spring and damper settings along the first body's constraint axis.
inlinegetSpringDamper2():SpringDamper
Returns the rotational spring and damper settings along the second body's constraint axis.