A cylindrical joint constrains two rigid bodies to share their constraint axes, and restricts relative translation and rotation onto the constraint axis. This joint provides two degrees of freedom. You can enable lower and upper limits, motors, spring and damper effects of both translation and rotation 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
.
inlinegetRotationalLimitMotor():RotationalLimitMotor
Returns the rotational limits and motor settings.
inlinegetTranslationalLimitMotor():TranslationalLimitMotor
Returns the translational limits and motor settings.
inlinegetTranslationalSpringDamper():SpringDamper
Returns the translational spring and damper settings.