PackageBox2DAS.Dynamics.Joints
Classpublic class b2Joint
Inheritanceb2Joint Inheritance b2EventDispatcher Inheritance b2Base Inheritance Object
Subclasses b2DistanceJoint, b2GearJoint, b2LineJoint, b2MouseJoint, b2PrismaticJoint, b2PulleyJoint, b2RevoluteJoint



Public Properties
 PropertyDefined By
 Inheritedbytes : ByteArray
[static]
b2Base
 Inheriteddispatcher : IEventDispatcher
b2EventDispatcher
  ID : int
b2Joint
 Inheritedinitialized : Boolean = false
[static]
b2Base
 Inheritedlib : Object
[static]
b2Base
 Inheritedloader : CLibInit
[static]
b2Base
  m_bodyA : b2Body
b2Joint
  m_bodyB : b2Body
b2Joint
  m_collideConnected : Boolean
b2Joint
 Inheritedmem : MemUser
[static]
b2Base
  m_islandFlag : Boolean
b2Joint
  m_next : b2Joint
b2Joint
  m_prev : b2Joint
b2Joint
  m_type : int
b2Joint
  m_userData : *
b2Joint
  m_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
  
b2Joint(w:b2World, d:b2JointDef, ed:IEventDispatcher = null)
b2Joint
 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
  
destroy():void
[override]
b2Joint
 Inherited
dispatchEvent(evt:Event):Boolean
b2EventDispatcher
  
EnableLimit(flag:Boolean):void
b2Joint
  
EnableMotor(v:Boolean):void
b2Joint
  
b2Joint
  
b2Joint
 Inherited
getArr():Array
[static]
b2Base
  
b2Joint
  
b2Joint
  
b2Joint
  
GetFrequency():Number
b2Joint
  
GetLowerLimit():Number
b2Joint
  
b2Joint
  
b2Joint
  
GetMotorSpeed():Number
b2Joint
  
b2Joint
  
GetReactionForce(inv_dt:Number):V2
b2Joint
  
GetReactionTorque(inv_dt:Number):Number
b2Joint
  
GetType():int
b2Joint
  
GetUpperLimit():Number
b2Joint
  
b2Joint
 Inherited
hasEventListener(type:String):Boolean
b2EventDispatcher
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
  
IsLimitEnabled():Boolean
b2Joint
  
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(v:Number):void
b2Joint
  
SetFrequency(v:Number):void
b2Joint
  
SetLimits(lower:Number, upper:Number):void
b2Joint
  
SetLowerLimit(l:Number):void
b2Joint
  
SetMaxMotorForce(v:Number):void
b2Joint
  
SetMaxMotorTorque(v:Number):void
b2Joint
  
SetMotorSpeed(v:Number):void
b2Joint
  
SetUpperLimit(l:Number):void
b2Joint
  
SetUserData(data:*):void
b2Joint
  
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
  e_atLowerLimit : int = 1
[static]
b2Joint
  e_atUpperLimit : int = 2
[static]
b2Joint
  e_distanceJoint : int = 3
[static]
b2Joint
  e_equalLimits : int = 3
[static]
b2Joint
  e_fixedJoint : int = 8
[static]
b2Joint
  e_gearJoint : int = 6
[static]
b2Joint
  e_inactiveLimit : int = 0
[static]
b2Joint
  e_lineJoint : int = 7
[static]
b2Joint
  e_mouseJoint : int = 5
[static]
b2Joint
  e_prismaticJoint : int = 2
[static]
b2Joint
  e_pulleyJoint : int = 4
[static]
b2Joint
  e_revoluteJoint : int = 1
[static]
b2Joint
  e_unknownJoint : int = 0
[static]
b2Joint
Property Detail
IDproperty
public var ID:int

m_bodyAproperty 
public var m_bodyA:b2Body

m_bodyBproperty 
public var m_bodyB:b2Body

m_collideConnectedproperty 
m_collideConnected:Boolean


Implementation
    public function get m_collideConnected():Boolean
    public function set m_collideConnected(value:Boolean):void
m_islandFlagproperty 
m_islandFlag:Boolean


Implementation
    public function get m_islandFlag():Boolean
    public function set m_islandFlag(value:Boolean):void
m_nextproperty 
public var m_next:b2Joint

m_prevproperty 
public var m_prev:b2Joint

m_typeproperty 
m_type:int


Implementation
    public function get m_type():int
    public function set m_type(value:int):void
m_userDataproperty 
public var m_userData:*

m_worldproperty 
public var m_world:b2World

Constructor Detail
b2Joint()Constructor
public function b2Joint(w:b2World, d:b2JointDef, ed:IEventDispatcher = null)



Parameters
w:b2World
 
d:b2JointDef
 
ed:IEventDispatcher (default = null)
Method Detail
destroy()method
override public function destroy():void

EnableLimit()method 
public function EnableLimit(flag:Boolean):void

Parameters

flag:Boolean

EnableMotor()method 
public function EnableMotor(v:Boolean):void

Parameters

v:Boolean

GetAnchorA()method 
public function GetAnchorA():V2

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

Returns
V2
GetBodyA()method 
public function GetBodyA():b2Body

Returns
b2Body
GetBodyB()method 
public function GetBodyB():b2Body

Returns
b2Body
GetDampingRatio()method 
public function GetDampingRatio():Number

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

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

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

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

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

Returns
Number
GetNext()method 
public function GetNext():b2Joint

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

Parameters

inv_dt:Number

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

Parameters

inv_dt:Number

Returns
Number
GetType()method 
public function GetType():int

Returns
int
GetUpperLimit()method 
public function GetUpperLimit():Number

Returns
Number
GetUserData()method 
public function GetUserData():*

Returns
*
IsLimitEnabled()method 
public function IsLimitEnabled():Boolean

Returns
Boolean
IsMotorEnabled()method 
public function IsMotorEnabled():Boolean

Returns
Boolean
SetDampingRatio()method 
public function SetDampingRatio(v:Number):void

Parameters

v:Number

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

Parameters

v:Number

SetLimits()method 
public function SetLimits(lower:Number, upper:Number):void

Parameters

lower:Number
 
upper:Number

SetLowerLimit()method 
public function SetLowerLimit(l:Number):void

Parameters

l:Number

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

Parameters

v:Number

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

Parameters

v:Number

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

Parameters

v:Number

SetUpperLimit()method 
public function SetUpperLimit(l:Number):void

Parameters

l:Number

SetUserData()method 
public function SetUserData(data:*):void

Parameters

data:*

WakeUp()method 
public function WakeUp():void

Constant Detail
e_atLowerLimitConstant
public static const e_atLowerLimit:int = 1

e_atUpperLimitConstant 
public static const e_atUpperLimit:int = 2

e_distanceJointConstant 
public static const e_distanceJoint:int = 3

e_equalLimitsConstant 
public static const e_equalLimits:int = 3

e_fixedJointConstant 
public static const e_fixedJoint:int = 8

e_gearJointConstant 
public static const e_gearJoint:int = 6

e_inactiveLimitConstant 
public static const e_inactiveLimit:int = 0

e_lineJointConstant 
public static const e_lineJoint:int = 7

e_mouseJointConstant 
public static const e_mouseJoint:int = 5

e_prismaticJointConstant 
public static const e_prismaticJoint:int = 2

e_pulleyJointConstant 
public static const e_pulleyJoint:int = 4

e_revoluteJointConstant 
public static const e_revoluteJoint:int = 1

e_unknownJointConstant 
public static const e_unknownJoint:int = 0