API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classJoint
@codexo/exojs-physics / physics / stable
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.
4
props
0
methods
0
events
Import
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.
Constructors1
new(bodyA: PhysicsBodyA rigid body: a world transform plus mass properties aggregated from its colliders. Dynamic bodies integrate under gravity, accumulated forces/torque and conta…, bodyB: PhysicsBodyA rigid body: a world transform plus mass properties aggregated from its colliders. Dynamic bodies integrate under gravity, accumulated forces/torque and conta…, collideConnected: boolean): JointProperties4
First constrained body.
Second constrained body.
collideConnected: booleanWhether bodyA and bodyB also collide with each other; see JointOptions.collideConnected.
enabled: booleanWhen false, the joint is skipped by the solver (but still tracked by the world).
Source