API reference

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

C

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
Properties4
collideConnected: boolean
Whether bodyA and bodyB also collide with each other; see JointOptions.collideConnected.
enabled: boolean
When false, the joint is skipped by the solver (but still tracked by the world).
Source