API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classRevoluteJoint
@codexo/exojs-physics / physics / stable
Pins a shared anchor point on two bodies (a hinge): the bodies may rotate freely about the pivot but the anchor points stay coincident. Solved as a 2-DOF point constraint (a 2×2 block) in the sub-step loop, warm-started.
12
props
0
methods
0
events
Import
import { RevoluteJoint } from '@codexo/exojs-physics'Pins a shared anchor point on two bodies (a hinge): the bodies may rotate freely about the pivot but the anchor points stay coincident. Solved as a 2-DOF point constraint (a 2×2 block) in the sub-step loop, warm-started.
Constructors1
new(options: RevoluteJointOptionsConstruction options for a RevoluteJoint.): RevoluteJointProperties12
First constrained body.
Second constrained body.
collideConnected: booleanWhether bodyA and bodyB also collide with each other; see JointOptions.collideConnected.
dampingRatio: numberSoft-spring damping ratio.
enabled: booleanWhen false, the joint is skipped by the solver (but still tracked by the world).
enableLimit: booleanWhen true, the relative angle is constrained to [lowerAngle, upperAngle].
enableMotor: booleanWhen true, the motor drives ωB − ωA toward motorSpeed.
hertz: numberSoft-spring frequency in Hz (0 = rigid).
lowerAngle: numberLower relative-angle limit (radians, relative to the creation angle).
maxMotorTorque: numberMaximum motor torque.
motorSpeed: numberTarget relative angular velocity (rad/s) for the motor.
upperAngle: numberUpper relative-angle limit (radians).
Source