Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Constructors

Properties

bodyA: b2Body

The first attached body.

bodyB: b2Body

The second attached body.

collideConnected: boolean

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

dampingRatio: number

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

frequencyHz: number

The response speed.

maxForce: number

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

target: b2Vec2

The initial world target point. This is assumed to coincide with the body anchor initially.

type: number

The joint type is set automatically for concrete joint types.

userData: any

Use this to attach application specific data to your joints.

Generated using TypeDoc