API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classWeldJoint
@codexo/exojs-physics / physics / stable
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.
8
props
0
methods
0
events
Import
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.
Constructors1
new(options: WeldJointOptionsConstruction options for a WeldJoint.): WeldJointProperties8
angularHertz: numberSoft frequency for the angle lock (0 = rigid).
First constrained body.
Second constrained body.
collideConnected: booleanWhether bodyA and bodyB also collide with each other; see JointOptions.collideConnected.
dampingRatio: numberSoft damping ratio.
enabled: booleanWhen false, the joint is skipped by the solver (but still tracked by the world).
linearHertz: numberSoft frequency for the position lock (0 = rigid).
referenceAngle: numberLocked relative angle angleB − angleA.
Source