Interface LinearSpringOptions

Hierarchy

Properties

damping?: number

A number >= 0. Default: 1

localAnchorA?: Vec2

Where to hook the spring to body A, in local body coordinates. Defaults to the body center.

localAnchorB?: Vec2

Where to hook the spring to body B, in local body coordinates. Defaults to the body center.

restLength?: number

A number > 0. Default is the current distance between the world anchor points.

stiffness?: number

Spring constant (see Hookes Law). A number >= 0.

worldAnchorA?: Vec2

Where to hook the spring to body A, using world coordinates.

worldAnchorB?: Vec2

Where to hook the spring to body B, using world coordinates.