API reference

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

C

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.

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

Constructors 1
new(options: WeldJointOptions): WeldJoint
Properties 7
angularHertz: number
bodyA: PhysicsBody
bodyB: PhysicsBody
dampingRatio: number
enabled: boolean
linearHertz: number
referenceAngle: number
Source