Skip to content

Interface: IPhysicsJoint2D ​

Core interface types.

Properties ​

PropertyModifierType
userDatareadonlyunknown

Methods ​

Destroy() ​

ts
Destroy(): void;

Returns ​

void


GetReactionForce() ​

ts
GetReactionForce(invDt, out): void;

Reaction on bodyB at the anchor, for a step of 1 / invDt seconds.

Parameters ​

ParameterType
invDtnumber
out{ x: number; y: number; }
out.xnumber
out.ynumber

Returns ​

void


GetReactionTorque() ​

ts
GetReactionTorque(invDt): number;

Parameters ​

ParameterType
invDtnumber

Returns ​

number


Tune() ​

ts
Tune(def): void;

Applies def's tunable values in place — motor, limits, length, spring, target, max force — and wakes the bodies. Its kind matches the joint's; bodies and anchors are ignored.

Parameters ​

ParameterType
defJoint2DDef

Returns ​

void

© 2026 PlayAdGentic