PackageBox2D.Dynamics.Joints
Classpublic class b2MouseJointDef
Inheritanceb2MouseJointDef Inheritance b2JointDef
Sourceb2MouseJointDef.as

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

See also

b2MouseJoint


Public Properties
 PropertyDefined by
 Inheritedbody1 : b2Body
The first attached body.
b2JointDef
 Inheritedbody2 : b2Body
The second attached body.
b2JointDef
 InheritedcollideConnected : Boolean
Set this flag to true if the attached bodies should collide.
b2JointDef
  dampingRatio : Number
The damping ratio.
b2MouseJointDef
  frequencyHz : Number
The response speed.
b2MouseJointDef
  maxForce : Number
The maximum constraint force that can be exerted to move the candidate body.
b2MouseJointDef
  target : b2Vec2
The initial world target point.
b2MouseJointDef
 Inheritedtype : int
The joint type is set automatically for concrete joint types.
b2JointDef
 InheriteduserData : *
Use this to attach application specific data to your joints.
b2JointDef
Public Methods
 MethodDefined by
  
b2MouseJointDef
Property detail
dampingRatioproperty
public var dampingRatio:Number

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

frequencyHzproperty 
public var frequencyHz:Number

The response speed.

maxForceproperty 
public var maxForce:Number

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).

targetproperty 
public var target:b2Vec2

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

Constructor detail
b2MouseJointDef()constructor
public function b2MouseJointDef()