API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

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
Properties12
collideConnected: boolean
Whether bodyA and bodyB also collide with each other; see JointOptions.collideConnected.
dampingRatio: number
Soft-spring damping ratio.
enabled: boolean
When false, the joint is skipped by the solver (but still tracked by the world).
enableLimit: boolean
When true, the relative angle is constrained to [lowerAngle, upperAngle].
enableMotor: boolean
When true, the motor drives ωB − ωA toward motorSpeed.
hertz: number
Soft-spring frequency in Hz (0 = rigid).
lowerAngle: number
Lower relative-angle limit (radians, relative to the creation angle).
maxMotorTorque: number
Maximum motor torque.
motorSpeed: number
Target relative angular velocity (rad/s) for the motor.
upperAngle: number
Upper relative-angle limit (radians).
Source