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.

3
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.

Constructors 1
new(bodyA: PhysicsBody, bodyB: PhysicsBody): Joint
Properties 3
bodyA: PhysicsBody
bodyB: PhysicsBody
enabled: boolean
Source