PackageBox2DAS.Dynamics.Joints
Classpublic class b2PrismaticJoint
Inheritanceb2PrismaticJoint 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_a1 : Number
b2PrismaticJoint
  m_a2 : Number
b2PrismaticJoint
  m_axis : b2Vec2
b2PrismaticJoint
 Inheritedm_bodyA : b2Body
b2Joint
 Inheritedm_bodyB : b2Body
b2Joint
 Inheritedm_collideConnected : Boolean
b2Joint
 Inheritedmem : MemUser
[static]
b2Base
  m_enableLimit : Boolean
b2PrismaticJoint
  m_enableMotor : Boolean
b2PrismaticJoint
  m_impulse : b2Vec3
b2PrismaticJoint
 Inheritedm_islandFlag : Boolean
b2Joint
  m_limitState : int
b2PrismaticJoint
  m_localAnchor1 : b2Vec2
b2PrismaticJoint
  m_localAnchor2 : b2Vec2
b2PrismaticJoint
  m_localXAxis1 : b2Vec2
b2PrismaticJoint
  m_localYAxis1 : b2Vec2
b2PrismaticJoint
  m_lowerTranslation : Number
b2PrismaticJoint
  m_maxMotorForce : Number
b2PrismaticJoint
  m_motorImpulse : Number
b2PrismaticJoint
  m_motorMass : Number
b2PrismaticJoint
  m_motorSpeed : Number
b2PrismaticJoint
 Inheritedm_next : b2Joint
b2Joint
  m_perp : b2Vec2
b2PrismaticJoint
 Inheritedm_prev : b2Joint
b2Joint
  m_refAngle : Number
b2PrismaticJoint
  m_s1 : Number
b2PrismaticJoint
  m_s2 : Number
b2PrismaticJoint
 Inheritedm_type : int
b2Joint
  m_upperTranslation : Number
b2PrismaticJoint
 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
  
b2PrismaticJoint(w:b2World, d:b2PrismaticJointDef = null, ed:IEventDispatcher = null)
b2PrismaticJoint
 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
  
EnableLimit(flag:Boolean):void
[override]
b2PrismaticJoint
  
EnableMotor(flag:Boolean):void
[override]
b2PrismaticJoint
  
[override]
b2PrismaticJoint
  
[override]
b2PrismaticJoint
 Inherited
getArr():Array
[static]
b2Base
 Inherited
b2Joint
 Inherited
b2Joint
 Inherited
b2Joint
 Inherited
GetFrequency():Number
b2Joint
  
GetJointSpeed():Number
b2PrismaticJoint
  
b2PrismaticJoint
  
GetLowerLimit():Number
[override]
b2PrismaticJoint
  
[override]
b2PrismaticJoint
 Inherited
b2Joint
  
GetMotorForce():Number
b2PrismaticJoint
  
GetMotorSpeed():Number
[override]
b2PrismaticJoint
 Inherited
b2Joint
  
GetReactionForce(inv_dt:Number):V2
[override]
b2PrismaticJoint
  
GetReactionTorque(inv_dt:Number):Number
[override]
b2PrismaticJoint
 Inherited
GetType():int
b2Joint
  
GetUpperLimit():Number
[override]
b2PrismaticJoint
 Inherited
b2Joint
 Inherited
hasEventListener(type:String):Boolean
b2EventDispatcher
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
  
IsLimitEnabled():Boolean
[override]
b2PrismaticJoint
  
IsMotorEnabled():Boolean
[override]
b2PrismaticJoint
 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
  
SetLimits(lower:Number, upper:Number):void
[override]
b2PrismaticJoint
  
SetLowerLimit(l:Number):void
[override]
b2PrismaticJoint
  
SetMaxMotorForce(force:Number):void
[override]
b2PrismaticJoint
 Inherited
SetMaxMotorTorque(v:Number):void
b2Joint
  
SetMotorSpeed(speed:Number):void
[override]
b2PrismaticJoint
  
SetUpperLimit(l:Number):void
[override]
b2PrismaticJoint
 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_a1property
m_a1:Number


Implementation
    public function get m_a1():Number
    public function set m_a1(value:Number):void
m_a2property 
m_a2:Number


Implementation
    public function get m_a2():Number
    public function set m_a2(value:Number):void
m_axisproperty 
public var m_axis:b2Vec2

m_enableLimitproperty 
m_enableLimit:Boolean


Implementation
    public function get m_enableLimit():Boolean
    public function set m_enableLimit(value:Boolean):void
m_enableMotorproperty 
m_enableMotor:Boolean


Implementation
    public function get m_enableMotor():Boolean
    public function set m_enableMotor(value:Boolean):void
m_impulseproperty 
public var m_impulse:b2Vec3

m_limitStateproperty 
m_limitState:int


Implementation
    public function get m_limitState():int
    public function set m_limitState(value:int):void
m_localAnchor1property 
public var m_localAnchor1:b2Vec2

m_localAnchor2property 
public var m_localAnchor2:b2Vec2

m_localXAxis1property 
public var m_localXAxis1:b2Vec2

m_localYAxis1property 
public var m_localYAxis1:b2Vec2

m_lowerTranslationproperty 
m_lowerTranslation:Number


Implementation
    public function get m_lowerTranslation():Number
    public function set m_lowerTranslation(value:Number):void
m_maxMotorForceproperty 
m_maxMotorForce:Number


Implementation
    public function get m_maxMotorForce():Number
    public function set m_maxMotorForce(value:Number):void
m_motorImpulseproperty 
m_motorImpulse:Number


Implementation
    public function get m_motorImpulse():Number
    public function set m_motorImpulse(value:Number):void
m_motorMassproperty 
m_motorMass:Number


Implementation
    public function get m_motorMass():Number
    public function set m_motorMass(value:Number):void
m_motorSpeedproperty 
m_motorSpeed:Number


Implementation
    public function get m_motorSpeed():Number
    public function set m_motorSpeed(value:Number):void
m_perpproperty 
public var m_perp:b2Vec2

m_refAngleproperty 
m_refAngle:Number


Implementation
    public function get m_refAngle():Number
    public function set m_refAngle(value:Number):void
m_s1property 
m_s1:Number


Implementation
    public function get m_s1():Number
    public function set m_s1(value:Number):void
m_s2property 
m_s2:Number


Implementation
    public function get m_s2():Number
    public function set m_s2(value:Number):void
m_upperTranslationproperty 
m_upperTranslation:Number


Implementation
    public function get m_upperTranslation():Number
    public function set m_upperTranslation(value:Number):void
Constructor Detail
b2PrismaticJoint()Constructor
public function b2PrismaticJoint(w:b2World, d:b2PrismaticJointDef = null, ed:IEventDispatcher = null)



Parameters
w:b2World
 
d:b2PrismaticJointDef (default = null)
 
ed:IEventDispatcher (default = null)
Method Detail
EnableLimit()method
override public function EnableLimit(flag:Boolean):void

Parameters

flag:Boolean

EnableMotor()method 
override public function EnableMotor(flag:Boolean):void

Parameters

flag:Boolean

GetAnchorA()method 
override public function GetAnchorA():V2

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

Returns
V2
GetJointSpeed()method 
public function GetJointSpeed():Number

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

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

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

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

Returns
Number
GetMotorSpeed()method 
override public function GetMotorSpeed():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
GetUpperLimit()method 
override public function GetUpperLimit():Number

Returns
Number
IsLimitEnabled()method 
override public function IsLimitEnabled():Boolean

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

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

Parameters

lower:Number
 
upper:Number

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

Parameters

l:Number

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

Parameters

force:Number

SetMotorSpeed()method 
override public function SetMotorSpeed(speed:Number):void

Parameters

speed:Number

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

Parameters

l:Number