Package | Box2DAS.Dynamics.Joints |
Class | public class b2Joint |
Inheritance | b2Joint b2EventDispatcher b2Base Object |
Subclasses | b2DistanceJoint, b2GearJoint, b2LineJoint, b2MouseJoint, b2PrismaticJoint, b2PulleyJoint, b2RevoluteJoint |
Property | Defined By | ||
---|---|---|---|
bytes : ByteArray [static] | b2Base | ||
dispatcher : IEventDispatcher | b2EventDispatcher | ||
ID : int | b2Joint | ||
initialized : Boolean = false [static] | b2Base | ||
lib : Object [static] | b2Base | ||
loader : CLibInit [static] | b2Base | ||
m_bodyA : b2Body | b2Joint | ||
m_bodyB : b2Body | b2Joint | ||
m_collideConnected : Boolean | b2Joint | ||
mem : 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 | ||
_ptr : Number | b2Base | ||
valid : Boolean [read-only]
Does the object point to a C++ equivalent (i.e. | b2Base |
Method | Defined By | ||
---|---|---|---|
b2Joint | |||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void | b2EventDispatcher | ||
deref(adr:int):* [static]
dereference a C++ pointer or AS3_Val that is pointing to an AS3 object. | b2Base | ||
destroy():void [override] | b2Joint | ||
dispatchEvent(evt:Event):Boolean | b2EventDispatcher | ||
EnableLimit(flag:Boolean):void | b2Joint | ||
EnableMotor(v:Boolean):void | b2Joint | ||
GetAnchorA():V2 | b2Joint | ||
GetAnchorB():V2 | b2Joint | ||
getArr():Array [static] | b2Base | ||
b2Joint | |||
b2Joint | |||
GetDampingRatio():Number | b2Joint | ||
GetFrequency():Number | b2Joint | ||
GetLowerLimit():Number | b2Joint | ||
GetMaxMotorForce():Number | b2Joint | ||
GetMaxMotorTorque():Number | b2Joint | ||
GetMotorSpeed():Number | b2Joint | ||
b2Joint | |||
GetReactionForce(inv_dt:Number):V2 | b2Joint | ||
GetReactionTorque(inv_dt:Number):Number | b2Joint | ||
GetType():int | b2Joint | ||
GetUpperLimit():Number | b2Joint | ||
GetUserData():* | b2Joint | ||
hasEventListener(type:String):Boolean | b2EventDispatcher | ||
initialize(defs:Boolean = true):void [static]
Initialize the C++ module. | b2Base | ||
IsLimitEnabled():Boolean | b2Joint | ||
IsMotorEnabled():Boolean | b2Joint | ||
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array. | b2Base | ||
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 | ||
willTrigger(type:String):Boolean | b2EventDispatcher | ||
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 |
Constant | Defined 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 |
ID | property |
public var ID:int
m_bodyA | property |
public var m_bodyA:b2Body
m_bodyB | property |
public var m_bodyB:b2Body
m_collideConnected | property |
m_collideConnected:Boolean
public function get m_collideConnected():Boolean
public function set m_collideConnected(value:Boolean):void
m_islandFlag | property |
m_islandFlag:Boolean
public function get m_islandFlag():Boolean
public function set m_islandFlag(value:Boolean):void
m_next | property |
public var m_next:b2Joint
m_prev | property |
public var m_prev:b2Joint
m_type | property |
m_type:int
public function get m_type():int
public function set m_type(value:int):void
m_userData | property |
public var m_userData:*
m_world | property |
public var m_world:b2World
b2Joint | () | Constructor |
public function b2Joint(w:b2World, d:b2JointDef, ed:IEventDispatcher = null)
w:b2World | |
d:b2JointDef | |
ed:IEventDispatcher (default = null )
|
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 |
GetAnchorB | () | method |
GetBodyA | () | method |
GetBodyB | () | method |
GetDampingRatio | () | method |
public function GetDampingRatio():Number
ReturnsNumber |
GetFrequency | () | method |
public function GetFrequency():Number
ReturnsNumber |
GetLowerLimit | () | method |
public function GetLowerLimit():Number
ReturnsNumber |
GetMaxMotorForce | () | method |
public function GetMaxMotorForce():Number
ReturnsNumber |
GetMaxMotorTorque | () | method |
public function GetMaxMotorTorque():Number
ReturnsNumber |
GetMotorSpeed | () | method |
public function GetMotorSpeed():Number
ReturnsNumber |
GetNext | () | method |
GetReactionForce | () | method |
GetReactionTorque | () | method |
public function GetReactionTorque(inv_dt:Number):Number
Parameters
inv_dt:Number |
Number |
GetType | () | method |
public function GetType():int
Returnsint |
GetUpperLimit | () | method |
public function GetUpperLimit():Number
ReturnsNumber |
GetUserData | () | method |
public function GetUserData():*
Returns* |
IsLimitEnabled | () | method |
public function IsLimitEnabled():Boolean
ReturnsBoolean |
IsMotorEnabled | () | method |
public function IsMotorEnabled():Boolean
ReturnsBoolean |
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
e_atLowerLimit | Constant |
public static const e_atLowerLimit:int = 1
e_atUpperLimit | Constant |
public static const e_atUpperLimit:int = 2
e_distanceJoint | Constant |
public static const e_distanceJoint:int = 3
e_equalLimits | Constant |
public static const e_equalLimits:int = 3
e_fixedJoint | Constant |
public static const e_fixedJoint:int = 8
e_gearJoint | Constant |
public static const e_gearJoint:int = 6
e_inactiveLimit | Constant |
public static const e_inactiveLimit:int = 0
e_lineJoint | Constant |
public static const e_lineJoint:int = 7
e_mouseJoint | Constant |
public static const e_mouseJoint:int = 5
e_prismaticJoint | Constant |
public static const e_prismaticJoint:int = 2
e_pulleyJoint | Constant |
public static const e_pulleyJoint:int = 4
e_revoluteJoint | Constant |
public static const e_revoluteJoint:int = 1
e_unknownJoint | Constant |
public static const e_unknownJoint:int = 0