Class b2MouseJointDef

Mouse joint definition. This requires a world target point, tuning parameters, and the time step.

Hierarchy

Index

Constructor methods

Properties

Constructor methods

constructor(): b2MouseJointDef

Constructor.

Returns

b2MouseJointDef

Properties

public bodyA: b2Body

The first attached body.

public bodyB: b2Body

The second attached body.

public collideConnected: boolean

Set this flag to true if the attached bodies should collide.

public dampingRatio: number

The damping ratio. 0 = no damping, 1 = critical damping.

public frequencyHz: number

The response speed.

public maxForce: number

The maximum constraint force that can be exerted to move the candidate body.

public type: number

The joint type is set automatically for concrete joint types.

public userData: any

Use this to attach application specific data to your joints.