API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classWeldJoint
Rigidly fixes the relative position and orientation of two bodies (they move as one rigid body). A 2-DOF point constraint (like RevoluteJoint) plus a 1-DOF angular constraint, solved in the sub-step loop. Both locks default to rigid; set `linearHertz`/`angularHertz` for a springy weld.
import { WeldJoint } from '@codexo/exojs-physics' Rigidly fixes the relative position and orientation of two bodies (they move as one rigid body). A 2-DOF point constraint (like RevoluteJoint) plus a 1-DOF angular constraint, solved in the sub-step loop. Both locks default to rigid; set `linearHertz`/`angularHertz` for a springy weld.
new(options: WeldJointOptions): WeldJoint angularHertz: number bodyA: PhysicsBody bodyB: PhysicsBody dampingRatio: number enabled: boolean linearHertz: number referenceAngle: number