Interface DistanceConstraintOptions



collideConnected?: boolean

Set to true if you want the connected bodies to collide.

distance?: number

The distance to keep between the anchor points. Defaults to the current distance between the bodies.

localAnchorA?: Vec2

The anchor point for bodyA, defined locally in bodyA frame. Defaults to [0,0].

localAnchorB?: Vec2

The anchor point for bodyB, defined locally in bodyB frame. Defaults to [0,0].

lowerLimit?: number

The lower constraint limit.

maxForce?: number

Maximum force to apply.

upperLimit?: number

The upper constraint limit.

wakeUpBodies?: boolean

Whether the constraint should wake up bodies when connected