PackageBox2DAS.Dynamics.Joints
Classpublic class b2DistanceJoint
Inheritanceb2DistanceJoint 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_bias : Number
b2DistanceJoint
 Inheritedm_bodyA : b2Body
b2Joint
 Inheritedm_bodyB : b2Body
b2Joint
 Inheritedm_collideConnected : Boolean
b2Joint
  m_dampingRatio : Number
b2DistanceJoint
 Inheritedmem : MemUser
[static]
b2Base
  m_frequencyHz : Number
b2DistanceJoint
  m_gamma : Number
b2DistanceJoint
  m_impulse : Number
b2DistanceJoint
 Inheritedm_islandFlag : Boolean
b2Joint
  m_length : Number
b2DistanceJoint
  m_localAnchor1 : b2Vec2
b2DistanceJoint
  m_localAnchor2 : b2Vec2
b2DistanceJoint
  m_mass : Number
b2DistanceJoint
 Inheritedm_next : b2Joint
b2Joint
 Inheritedm_prev : b2Joint
b2Joint
 Inheritedm_type : int
b2Joint
  m_u : b2Vec2
b2DistanceJoint
 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
  
b2DistanceJoint(w:b2World, d:b2DistanceJointDef = null, ed:IEventDispatcher = null)
b2DistanceJoint
 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]
b2DistanceJoint
  
[override]
b2DistanceJoint
 Inherited
getArr():Array
[static]
b2Base
 Inherited
b2Joint
 Inherited
b2Joint
  
[override]
b2DistanceJoint
  
GetFrequency():Number
[override]
b2DistanceJoint
  
GetLength():Number
b2DistanceJoint
 Inherited
GetLowerLimit():Number
b2Joint
 Inherited
b2Joint
 Inherited
b2Joint
 Inherited
GetMotorSpeed():Number
b2Joint
 Inherited
b2Joint
  
GetReactionForce(inv_dt:Number):V2
[override]
b2DistanceJoint
  
GetReactionTorque(inv_dt:Number):Number
[override]
b2DistanceJoint
 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]
b2DistanceJoint
  
SetFrequency(hz:Number):void
[override]
b2DistanceJoint
  
SetLength(length:Number):void
b2DistanceJoint
 Inherited
SetLimits(lower:Number, upper:Number):void
b2Joint
 Inherited
SetLowerLimit(l:Number):void
b2Joint
 Inherited
SetMaxMotorForce(v:Number):void
b2Joint
 Inherited
SetMaxMotorTorque(v:Number):void
b2Joint
 Inherited
SetMotorSpeed(v:Number):void
b2Joint
 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_biasproperty
m_bias:Number


Implementation
    public function get m_bias():Number
    public function set m_bias(value:Number):void
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 
m_impulse:Number


Implementation
    public function get m_impulse():Number
    public function set m_impulse(value:Number):void
m_lengthproperty 
m_length:Number


Implementation
    public function get m_length():Number
    public function set m_length(value:Number):void
m_localAnchor1property 
public var m_localAnchor1:b2Vec2

m_localAnchor2property 
public var m_localAnchor2:b2Vec2

m_massproperty 
m_mass:Number


Implementation
    public function get m_mass():Number
    public function set m_mass(value:Number):void
m_uproperty 
public var m_u:b2Vec2

Constructor Detail
b2DistanceJoint()Constructor
public function b2DistanceJoint(w:b2World, d:b2DistanceJointDef = null, ed:IEventDispatcher = null)



Parameters
w:b2World
 
d:b2DistanceJointDef (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
GetLength()method 
public function GetLength():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

SetLength()method 
public function SetLength(length:Number):void

Parameters

length:Number