Skip to main content

Function: resolvePrismaticJoint()

resolvePrismaticJoint(joint): void

Defined in: physics/joints/resolve-prismatic-joint.ts:244

Resolves a PrismaticJoint by applying impulse-based velocity corrections that lock relative rotation and perpendicular translation to zero (and clamp axial translation to the joint's 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

PrismaticJoint

The joint to resolve.

Returns

void