| Property | Defined By | ||
|---|---|---|---|
![]() | bytes : ByteArray [static] | b2Base | |
| defaultContactListener : Class [static] | b2World | ||
| defaultDestructionListener : Class [static] | b2World | ||
![]() | dispatcher : IEventDispatcher | b2EventDispatcher | |
![]() | initialized : Boolean = false [static] | b2Base | |
![]() | lib : Object [static] | b2Base | |
![]() | loader : CLibInit [static] | b2Base | |
| m_aabb : b2AABB | b2World | ||
| m_allowSleep : Boolean | b2World | ||
| m_bodyCount : int | b2World | ||
| m_bodyList : b2Body | b2World | ||
| m_contactListener : b2ContactListener | b2World | ||
| m_contactManager : b2ContactManager | b2World | ||
| m_continuousPhysics : Boolean | b2World | ||
| m_controllers : Dictionary | b2World | ||
| m_destructionListener : b2DestructionListener | b2World | ||
![]() | mem : MemUser [static] | b2Base | |
| m_flags : int | b2World | ||
| m_gravity : b2Vec2 | b2World | ||
| m_groundBody : b2Body | b2World | ||
| m_jointCount : int | b2World | ||
| m_jointList : b2Joint | b2World | ||
| m_warmStarting : Boolean | b2World | ||
![]() | _ptr : Number | b2Base | |
| stepTime : int = 0 | b2World | ||
![]() | valid : Boolean [read-only]
Does the object point to a C++ equivalent (i.e. | b2Base | |
| Method | Defined By | ||
|---|---|---|---|
b2World(g_or_p:*, s:Boolean = true, d:IEventDispatcher = null) | b2World | ||
AddController(c:b2Controller):void | b2World | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void | b2EventDispatcher | |
| b2World | |||
ClearForces():* | b2World | ||
| b2World | |||
| b2World | |||
![]() | deref(adr:int):* [static]
dereference a C++ pointer or AS3_Val that is pointing to an AS3 object. | b2Base | |
destroy():void [override] | b2World | ||
DestroyBody(body:b2Body):void | b2World | ||
DestroyJoint(joint:b2Joint):void | b2World | ||
![]() | dispatchEvent(evt:Event):Boolean | b2EventDispatcher | |
| b2World | |||
![]() | getArr():Array [static] | b2Base | |
GetAutoClearForces():Boolean | b2World | ||
GetBodyCount():int | b2World | ||
| b2World | |||
GetContactCount():int | b2World | ||
| b2World | |||
GetGravity():V2 | b2World | ||
GetJointCount():int | b2World | ||
| b2World | |||
GetProxyCount():int | b2World | ||
| b2World | |||
HandleStep(se:StepEvent):void | b2World | ||
![]() | hasEventListener(type:String):Boolean | b2EventDispatcher | |
![]() | initialize(defs:Boolean = true):void [static]
Initialize the C++ module. | b2Base | |
IsLocked():Boolean | b2World | ||
| b2World | |||
| b2World | |||
| b2World | |||
QueryPoint(callback:Function, p:V2):void | b2World | ||
| b2World | |||
![]() | readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array. | b2Base | |
RemoveController(c:b2Controller):void | b2World | ||
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void | b2EventDispatcher | |
SayGoodbyeFixture(f:b2Fixture):void | b2World | ||
SayGoodbyeJoint(j:b2Joint):void | b2World | ||
SetAutoClearForces(flag:Boolean):void | b2World | ||
SetContactListener(listener:b2ContactListener):void | b2World | ||
SetContinuousPhysics(flag:Boolean):void | b2World | ||
SetDestructionListener(listener:b2DestructionListener):void | b2World | ||
SetGravity(gravity:V2):void | b2World | ||
SetScreenBounds(bounds:AABB):void | b2World | ||
SetWarmStarting(flag:Boolean):void | b2World | ||
Step(timeStep:Number, velocityIterations:int, positionIterations:int):void | b2World | ||
![]() | 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_clearForces : * = 0x0004 [static] | b2World | ||
| e_locked : int = 0x0002 [static] | b2World | ||
| e_newFixture : int = 0x0001 [static] | b2World | ||
| defaultContactListener | property |
public static var defaultContactListener:Class| defaultDestructionListener | property |
public static var defaultDestructionListener:Class| m_aabb | property |
public var m_aabb:b2AABB| m_allowSleep | property |
m_allowSleep:Boolean public function get m_allowSleep():Boolean public function set m_allowSleep(value:Boolean):void| m_bodyCount | property |
m_bodyCount:int public function get m_bodyCount():int public function set m_bodyCount(value:int):void| m_bodyList | property |
public var m_bodyList:b2Body| m_contactListener | property |
public var m_contactListener:b2ContactListener| m_contactManager | property |
public var m_contactManager:b2ContactManager| m_continuousPhysics | property |
m_continuousPhysics:Boolean public function get m_continuousPhysics():Boolean public function set m_continuousPhysics(value:Boolean):void| m_controllers | property |
public var m_controllers:Dictionary| m_destructionListener | property |
public var m_destructionListener:b2DestructionListener| m_flags | property |
m_flags:int public function get m_flags():int public function set m_flags(value:int):void| m_gravity | property |
public var m_gravity:b2Vec2| m_groundBody | property |
public var m_groundBody:b2Body| m_jointCount | property |
m_jointCount:int public function get m_jointCount():int public function set m_jointCount(value:int):void| m_jointList | property |
public var m_jointList:b2Joint| m_warmStarting | property |
m_warmStarting:Boolean public function get m_warmStarting():Boolean public function set m_warmStarting(value:Boolean):void| stepTime | property |
public var stepTime:int = 0| b2World | () | Constructor |
public function b2World(g_or_p:*, s:Boolean = true, d:IEventDispatcher = null)g_or_p:* | |
s:Boolean (default = true) | |
d:IEventDispatcher (default = null) |
| AddController | () | method |
| BeginContact | () | method |
public function BeginContact(c:int, a:b2Fixture, b:b2Fixture):voidParameters
c:int | |
a:b2Fixture | |
b:b2Fixture |
| ClearForces | () | method |
public function ClearForces():*Returns* |
| CreateBody | () | method |
public function CreateBody(def:b2BodyDef = null):b2BodyParameters
def:b2BodyDef (default = null) |
b2Body |
| CreateJoint | () | method |
public function CreateJoint(def:b2JointDef, ed:IEventDispatcher = null):b2JointParameters
def:b2JointDef | |
ed:IEventDispatcher (default = null) |
b2Joint |
| destroy | () | method |
override public function destroy():void| DestroyBody | () | method |
| DestroyJoint | () | method |
| EndContact | () | method |
public function EndContact(c:int, a:b2Fixture, b:b2Fixture):voidParameters
c:int | |
a:b2Fixture | |
b:b2Fixture |
| GetAutoClearForces | () | method |
public function GetAutoClearForces():BooleanReturnsBoolean |
| GetBodyCount | () | method |
public function GetBodyCount():intReturnsint |
| GetBodyList | () | method |
| GetContactCount | () | method |
public function GetContactCount():intReturnsint |
| GetContactList | () | method |
| GetGravity | () | method |
| GetJointCount | () | method |
public function GetJointCount():intReturnsint |
| GetJointList | () | method |
| GetProxyCount | () | method |
public function GetProxyCount():intReturnsint |
| GetScreenBounds | () | method |
| HandleStep | () | method |
| IsLocked | () | method |
public function IsLocked():BooleanReturnsBoolean |
| PostSolve | () | method |
public function PostSolve(c:int, a:b2Fixture, b:b2Fixture, i:int):voidParameters
c:int | |
a:b2Fixture | |
b:b2Fixture | |
i:int |
| PreSolve | () | method |
public function PreSolve(c:int, a:b2Fixture, b:b2Fixture, o:int):voidParameters
c:int | |
a:b2Fixture | |
b:b2Fixture | |
o:int |
| QueryAABB | () | method |
| QueryPoint | () | method |
| RayCast | () | method |
public function RayCast(callback:Function, point1:V2, point2:V2):voidParameters
callback:Function | |
point1:V2 | |
point2:V2 |
| RemoveController | () | method |
| SayGoodbyeFixture | () | method |
| SayGoodbyeJoint | () | method |
| SetAutoClearForces | () | method |
public function SetAutoClearForces(flag:Boolean):voidParameters
flag:Boolean |
| SetContactListener | () | method |
public function SetContactListener(listener:b2ContactListener):voidParameters
listener:b2ContactListener |
| SetContinuousPhysics | () | method |
public function SetContinuousPhysics(flag:Boolean):voidParameters
flag:Boolean |
| SetDestructionListener | () | method |
public function SetDestructionListener(listener:b2DestructionListener):voidParameters
listener:b2DestructionListener |
| SetGravity | () | method |
| SetScreenBounds | () | method |
| SetWarmStarting | () | method |
public function SetWarmStarting(flag:Boolean):voidParameters
flag:Boolean |
| Step | () | method |
public function Step(timeStep:Number, velocityIterations:int, positionIterations:int):voidParameters
timeStep:Number | |
velocityIterations:int | |
positionIterations:int |
| e_clearForces | Constant |
public static const e_clearForces:* = 0x0004| e_locked | Constant |
public static const e_locked:int = 0x0002| e_newFixture | Constant |
public static const e_newFixture:int = 0x0001