Skip to content

RopeJointConfig

Defined in: physics/src/types.ts:97

Inextensible tether that keeps the anchor points within length. Every number is finite; length is >= 0.

optional anchorA?: Vec2Like

Defined in: physics/src/types.ts:102

Attachment point on body A in pixels, local to the body. Default: body origin.


optional anchorB?: Vec2Like

Defined in: physics/src/types.ts:104

Attachment point on body B in pixels, local to the body. Default: body origin.


length: number

Defined in: physics/src/types.ts:100

Maximum distance between the anchor points, in pixels.


type: "rope"

Defined in: physics/src/types.ts:98