PackageBox2DAS.Dynamics.Joints
Classpublic class b2MouseJoint
Inheritanceb2MouseJoint Inheritance b2Joint Inheritance b2EventDispatcher Inheritance b2Base Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedbytes : ByteArray
[static]
b2Base
 Inheriteddispatcher : IEventDispatcher
b2EventDispatcher
 InheritedID : int
b2Joint
 Inheritedinitialized : Boolean = false
[static]
b2Base
 Inheritedlib : Object
[static]
b2Base
 Inheritedloader : CLibInit
[static]
b2Base
  m_beta : Number
b2MouseJoint
 Inheritedm_bodyA : b2Body
b2Joint
 Inheritedm_bodyB : b2Body
b2Joint
  m_C : b2Vec2
b2MouseJoint
 Inheritedm_collideConnected : Boolean
b2Joint
  m_dampingRatio : Number
b2MouseJoint
 Inheritedmem : MemUser
[static]
b2Base
  m_frequencyHz : Number
b2MouseJoint
  m_gamma : Number
b2MouseJoint
  m_impulse : b2Vec2
b2MouseJoint
 Inheritedm_islandFlag : Boolean
b2Joint
  m_localAnchor : b2Vec2
b2MouseJoint
  m_maxForce : Number
b2MouseJoint
 Inheritedm_next : b2Joint
b2Joint
 Inheritedm_prev : b2Joint
b2Joint
  m_target : b2Vec2
b2MouseJoint
 Inheritedm_type : int
b2Joint
 Inheritedm_userData : *
b2Joint
 Inheritedm_world : b2World
b2Joint
 Inherited_ptr : Number
b2Base
 Inheritedvalid : Boolean
[read-only] Does the object point to a C++ equivalent (i.e.
b2Base
Public Methods
 MethodDefined By
  
b2MouseJoint(w:b2World, d:b2MouseJointDef = null, ed:IEventDispatcher = null)
b2MouseJoint
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
b2EventDispatcher
 Inherited
deref(adr:int):*
[static] dereference a C++ pointer or AS3_Val that is pointing to an AS3 object.
b2Base
 Inherited
destroy():void
[override]
b2Joint
 Inherited
dispatchEvent(evt:Event):Boolean
b2EventDispatcher
 Inherited
EnableLimit(flag:Boolean):void
b2Joint
 Inherited
EnableMotor(v:Boolean):void
b2Joint
  
[override]
b2MouseJoint
  
[override]
b2MouseJoint
 Inherited
getArr():Array
[static]
b2Base
 Inherited
b2Joint
 Inherited
b2Joint
  
[override]
b2MouseJoint
  
GetFrequency():Number
[override]
b2MouseJoint
 Inherited
GetLowerLimit():Number
b2Joint
  
GetMaxForce():Number
b2MouseJoint
  
[override]
b2MouseJoint
 Inherited
b2Joint
 Inherited
GetMotorSpeed():Number
b2Joint
 Inherited
b2Joint
  
GetReactionForce(inv_dt:Number):V2
[override]
b2MouseJoint
  
GetReactionTorque(inv_dt:Number):Number
[override]
b2MouseJoint
 Inherited
GetType():int
b2Joint
 Inherited
GetUpperLimit():Number
b2Joint
 Inherited
b2Joint
 Inherited
hasEventListener(type:String):Boolean
b2EventDispatcher
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
 Inherited
IsLimitEnabled():Boolean
b2Joint
 Inherited
IsMotorEnabled():Boolean
b2Joint
 Inherited
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array.
b2Base
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
b2EventDispatcher
  
SetDampingRatio(ratio:Number):void
[override]
b2MouseJoint
  
SetFrequency(hz:Number):void
[override]
b2MouseJoint
 Inherited
SetLimits(lower:Number, upper:Number):void
b2Joint
 Inherited
SetLowerLimit(l:Number):void
b2Joint
  
SetMaxForce(v:Number):void
b2MouseJoint
  
SetMaxMotorForce(v:Number):void
[override]
b2MouseJoint
 Inherited
SetMaxMotorTorque(v:Number):void
b2Joint
 Inherited
SetMotorSpeed(v:Number):void
b2Joint
  
SetTarget(v:V2):void
b2MouseJoint
 Inherited
SetUpperLimit(l:Number):void
b2Joint
 Inherited
SetUserData(data:*):void
b2Joint
 Inherited
WakeUp():void
b2Joint
 Inherited
willTrigger(type:String):Boolean
b2EventDispatcher
 Inherited
writeVertices(adr:int, v:Vector.<V2>):void
Write a vertex array of the format [new V2(x,y), new V2(x,y), ...] to C++ memory.
b2Base
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_fixedJoint : int = 8
[static]
b2Joint
 Inheritede_gearJoint : int = 6
[static]
b2Joint
 Inheritede_inactiveLimit : int = 0
[static]
b2Joint
 Inheritede_lineJoint : int = 7
[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
Property Detail
m_betaproperty
m_beta:Number


Implementation
    public function get m_beta():Number
    public function set m_beta(value:Number):void
m_Cproperty 
public var m_C:b2Vec2

m_dampingRatioproperty 
m_dampingRatio:Number


Implementation
    public function get m_dampingRatio():Number
    public function set m_dampingRatio(value:Number):void
m_frequencyHzproperty 
m_frequencyHz:Number


Implementation
    public function get m_frequencyHz():Number
    public function set m_frequencyHz(value:Number):void
m_gammaproperty 
m_gamma:Number


Implementation
    public function get m_gamma():Number
    public function set m_gamma(value:Number):void
m_impulseproperty 
public var m_impulse:b2Vec2

m_localAnchorproperty 
public var m_localAnchor:b2Vec2

m_maxForceproperty 
m_maxForce:Number


Implementation
    public function get m_maxForce():Number
    public function set m_maxForce(value:Number):void
m_targetproperty 
public var m_target:b2Vec2

Constructor Detail
b2MouseJoint()Constructor
public function b2MouseJoint(w:b2World, d:b2MouseJointDef = null, ed:IEventDispatcher = null)



Parameters
w:b2World
 
d:b2MouseJointDef (default = null)
 
ed:IEventDispatcher (default = null)
Method Detail
GetAnchorA()method
override public function GetAnchorA():V2

Returns
V2
GetAnchorB()method 
override public function GetAnchorB():V2

Returns
V2
GetDampingRatio()method 
override public function GetDampingRatio():Number

Returns
Number
GetFrequency()method 
override public function GetFrequency():Number

Returns
Number
GetMaxForce()method 
public function GetMaxForce():Number

Returns
Number
GetMaxMotorForce()method 
override public function GetMaxMotorForce():Number

Returns
Number
GetReactionForce()method 
override public function GetReactionForce(inv_dt:Number):V2

Parameters

inv_dt:Number

Returns
V2
GetReactionTorque()method 
override public function GetReactionTorque(inv_dt:Number):Number

Parameters

inv_dt:Number

Returns
Number
SetDampingRatio()method 
override public function SetDampingRatio(ratio:Number):void

Parameters

ratio:Number

SetFrequency()method 
override public function SetFrequency(hz:Number):void

Parameters

hz:Number

SetMaxForce()method 
public function SetMaxForce(v:Number):void

Parameters

v:Number

SetMaxMotorForce()method 
override public function SetMaxMotorForce(v:Number):void

Parameters

v:Number

SetTarget()method 
public function SetTarget(v:V2):void

Parameters

v:V2