API Documentation for:
Show:

b2MouseJointDef Class

Extends B2JointDef
Defined in: b2MouseJointDef:17
Module: Joints

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

Constructor

b2MouseJointDef

()

Defined in b2MouseJointDef:17

Properties

dampingRatio

Number public

Defined in dampingRatio:91

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

Default: 0.7

frequencyHz

Float public

Defined in frequencyHz:81

The response speed.

Default: 5.0

maxForce

Float public

Defined in maxForce:69

The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier mass gravity).

Default: 0.0

target

B2Vec2 public

Defined in target:49

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

type

Int public

Defined in type:61