PackageBox2D.Dynamics.Joints
Classpublic class b2MouseJoint
Inheritanceb2MouseJoint Inheritance b2Joint

A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces.



Public Methods
 MethodDefined by
  
b2MouseJoint
 Inherited
Create(def:b2JointDef, allocator:*):b2Joint
[static]
b2Joint
 Inherited
Destroy(joint:b2Joint, allocator:*):void
[static]
b2Joint
  
Implements b2Joint.
b2MouseJoint
  
Implements b2Joint.
b2MouseJoint
 Inherited
Get the first body attached to this joint.
b2Joint
 Inherited
Get the second body attached to this joint.
b2Joint
 Inherited
Get the next joint the world joint list.
b2Joint
  
Implements b2Joint.
b2MouseJoint
  
Implements b2Joint.
b2MouseJoint
 Inherited
GetType():int
Get the type of the concrete joint.
b2Joint
 Inherited
Get the user data pointer.
b2Joint
 Inherited
b2Joint
  
b2MouseJoint
  
SetTarget(target:b2Vec2):void
Use this to update the target point.
b2MouseJoint
 Inherited
SetUserData(data:*):void
Set the user data pointer.
b2Joint
  
b2MouseJoint
  
b2MouseJoint
Public Constants
 ConstantDefined by
 Inheritede_atLowerLimit : int = 1
[static]
b2Joint
 Inheritede_atUpperLimit : int = 2
[static]
b2Joint
 Inheritede_distanceJoint : int = 3
[static]
b2Joint
 Inheritede_equalLimits : int = 3
[static]
b2Joint
 Inheritede_gearJoint : int = 6
[static]
b2Joint
 Inheritede_inactiveLimit : int = 0
[static]
b2Joint
 Inheritede_mouseJoint : int = 5
[static]
b2Joint
 Inheritede_prismaticJoint : int = 2
[static]
b2Joint
 Inheritede_pulleyJoint : int = 4
[static]
b2Joint
 Inheritede_revoluteJoint : int = 1
[static]
b2Joint
 Inheritede_unknownJoint : int = 0
[static]
b2Joint
Constructor detail
b2MouseJoint()constructor
public function b2MouseJoint(def:b2MouseJointDef)Parameters
def:b2MouseJointDef
Method detail
GetAnchor1()method
public override function GetAnchor1():b2Vec2

Implements b2Joint.

Returns
b2Vec2
GetAnchor2()method 
public override function GetAnchor2():b2Vec2

Implements b2Joint.

Returns
b2Vec2
GetReactionForce()method 
public override function GetReactionForce():b2Vec2

Implements b2Joint.

Returns
b2Vec2
GetReactionTorque()method 
public override function GetReactionTorque():Number

Implements b2Joint.

Returns
Number
InitVelocityConstraints()method 
public override function InitVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep
SetTarget()method 
public function SetTarget(target:b2Vec2):void

Use this to update the target point.

Parameters
target:b2Vec2
SolvePositionConstraints()method 
public override function SolvePositionConstraints():Boolean

Returns
Boolean
SolveVelocityConstraints()method 
public override function SolveVelocityConstraints(step:b2TimeStep):voidParameters
step:b2TimeStep