PackageBox2DAS.Dynamics.Joints
Classpublic class b2GearJoint
Inheritanceb2GearJoint 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
 Inheritedm_bodyA : b2Body
b2Joint
 Inheritedm_bodyB : b2Body
b2Joint
 Inheritedm_collideConnected : Boolean
b2Joint
  m_constant : Number
b2GearJoint
 Inheritedmem : MemUser
[static]
b2Base
  m_ground1 : b2Body
b2GearJoint
  m_ground2 : b2Body
b2GearJoint
  m_groundAnchor1 : b2Vec2
b2GearJoint
  m_groundAnchor2 : b2Vec2
b2GearJoint
  m_impulse : Number
b2GearJoint
 Inheritedm_islandFlag : Boolean
b2Joint
  m_J : b2Jacobian
b2GearJoint
  m_localAnchor1 : b2Vec2
b2GearJoint
  m_localAnchor2 : b2Vec2
b2GearJoint
  m_mass : Number
b2GearJoint
 Inheritedm_next : b2Joint
b2Joint
 Inheritedm_prev : b2Joint
b2Joint
  m_prismatic1 : b2PrismaticJoint
b2GearJoint
  m_prismatic2 : b2PrismaticJoint
b2GearJoint
  m_ratio : Number
b2GearJoint
  m_revolute1 : b2RevoluteJoint
b2GearJoint
  m_revolute2 : b2RevoluteJoint
b2GearJoint
 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
  
b2GearJoint(w:b2World, d:b2GearJointDef = null, ed:IEventDispatcher = null)
b2GearJoint
 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]
b2GearJoint
  
[override]
b2GearJoint
 Inherited
getArr():Array
[static]
b2Base
 Inherited
b2Joint
 Inherited
b2Joint
 Inherited
b2Joint
 Inherited
GetFrequency():Number
b2Joint
 Inherited
GetLowerLimit():Number
b2Joint
 Inherited
b2Joint
 Inherited
b2Joint
 Inherited
GetMotorSpeed():Number
b2Joint
 Inherited
b2Joint
  
GetReactionForce(inv_dt:Number):V2
[override]
b2GearJoint
  
GetReactionTorque(inv_dt:Number):Number
[override]
b2GearJoint
 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
 Inherited
SetDampingRatio(v:Number):void
b2Joint
 Inherited
SetFrequency(v:Number):void
b2Joint
 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_constantproperty
m_constant:Number


Implementation
    public function get m_constant():Number
    public function set m_constant(value:Number):void
m_ground1property 
public var m_ground1:b2Body

m_ground2property 
public var m_ground2:b2Body

m_groundAnchor1property 
public var m_groundAnchor1:b2Vec2

m_groundAnchor2property 
public var m_groundAnchor2:b2Vec2

m_impulseproperty 
m_impulse:Number


Implementation
    public function get m_impulse():Number
    public function set m_impulse(value:Number):void
m_Jproperty 
public var m_J:b2Jacobian

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_prismatic1property 
public var m_prismatic1:b2PrismaticJoint

m_prismatic2property 
public var m_prismatic2:b2PrismaticJoint

m_ratioproperty 
m_ratio:Number


Implementation
    public function get m_ratio():Number
    public function set m_ratio(value:Number):void
m_revolute1property 
public var m_revolute1:b2RevoluteJoint

m_revolute2property 
public var m_revolute2:b2RevoluteJoint

Constructor Detail
b2GearJoint()Constructor
public function b2GearJoint(w:b2World, d:b2GearJointDef = null, ed:IEventDispatcher = null)



Parameters
w:b2World
 
d:b2GearJointDef (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
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