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.
11
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.
Constructors 1
new(options: RevoluteJointOptions): RevoluteJoint Properties 11
bodyA: PhysicsBody bodyB: PhysicsBody dampingRatio: number enabled: boolean enableLimit: boolean enableMotor: boolean hertz: number lowerAngle: number maxMotorTorque: number motorSpeed: number upperAngle: number Source