API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classJoint
Base class for a two-body constraint solved alongside contacts in the sub-step loop. Concrete joints (distance, revolute, weld) implement the three solver hooks; the world owns the joint list and drives them, and joins the two bodies into one sleep island so a jointed pair sleeps and wakes together.
import { Joint } from '@codexo/exojs-physics' Base class for a two-body constraint solved alongside contacts in the sub-step loop. Concrete joints (distance, revolute, weld) implement the three solver hooks; the world owns the joint list and drives them, and joins the two bodies into one sleep island so a jointed pair sleeps and wakes together.
new(bodyA: PhysicsBody, bodyB: PhysicsBody): Joint bodyA: PhysicsBody bodyB: PhysicsBody enabled: boolean