A revolute joint (a.k.a. hinge joint) constrains two rigid bodies to share their anchor points and constraint axes, and restricts relative rotation onto the constraint axis. This joint provides one degree of freedom. You can enable lower and upper limits, a motor, a spring and damper effect of the rotational part of the constraint.
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
.
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
.