Skip to main content

Function: resolveRevoluteJoint()

resolveRevoluteJoint(joint): void

Defined in: physics/joints/resolve-revolute-joint.ts:199

Resolves a RevoluteJoint by applying an impulse-based velocity correction that locks the bodies' anchor points together (and clamps relative rotation to the joint's angle limit, if enabled), then correcting any residual positional error. Mirrors resolveCollision's split between a velocity impulse pass and a Baumgarte positional correction pass, so it can be called once per PhysicsWorld solver iteration alongside collision resolution.

Parameters

joint

RevoluteJoint

The joint to resolve.

Returns

void