PackageBox2DAS.Dynamics
Classpublic class b2World
Inheritanceb2World Inheritance b2EventDispatcher Inheritance b2Base Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedbytes : ByteArray
[static]
b2Base
  defaultContactListener : Class
[static]
b2World
  defaultDestructionListener : Class
[static]
b2World
 Inheriteddispatcher : IEventDispatcher
b2EventDispatcher
 Inheritedinitialized : Boolean = false
[static]
b2Base
 Inheritedlib : Object
[static]
b2Base
 Inheritedloader : 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
 Inheritedmem : 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
 Inherited_ptr : Number
b2Base
  stepTime : int = 0
b2World
 Inheritedvalid : Boolean
[read-only] Does the object point to a C++ equivalent (i.e.
b2Base
Public Methods
 MethodDefined By
  
b2World(g_or_p:*, s:Boolean = true, d:IEventDispatcher = null)
b2World
  
b2World
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
b2EventDispatcher
  
BeginContact(c:int, a:b2Fixture, b:b2Fixture):void
b2World
  
b2World
  
b2World
  
CreateJoint(def:b2JointDef, ed:IEventDispatcher = null):b2Joint
b2World
 Inherited
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
 Inherited
dispatchEvent(evt:Event):Boolean
b2EventDispatcher
  
EndContact(c:int, a:b2Fixture, b:b2Fixture):void
b2World
 Inherited
getArr():Array
[static]
b2Base
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
 Inherited
hasEventListener(type:String):Boolean
b2EventDispatcher
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
  
IsLocked():Boolean
b2World
  
PostSolve(c:int, a:b2Fixture, b:b2Fixture, i:int):void
b2World
  
PreSolve(c:int, a:b2Fixture, b:b2Fixture, o:int):void
b2World
  
QueryAABB(callback:Function, aabb:AABB):void
b2World
  
QueryPoint(callback:Function, p:V2):void
b2World
  
RayCast(callback:Function, point1:V2, point2:V2):void
b2World
 Inherited
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array.
b2Base
  
b2World
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
b2EventDispatcher
  
b2World
  
b2World
  
SetAutoClearForces(flag:Boolean):void
b2World
  
b2World
  
SetContinuousPhysics(flag:Boolean):void
b2World
  
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
 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_clearForces : * = 0x0004
[static]
b2World
  e_locked : int = 0x0002
[static]
b2World
  e_newFixture : int = 0x0001
[static]
b2World
Property Detail
defaultContactListenerproperty
public static var defaultContactListener:Class

defaultDestructionListenerproperty 
public static var defaultDestructionListener:Class

m_aabbproperty 
public var m_aabb:b2AABB

m_allowSleepproperty 
m_allowSleep:Boolean


Implementation
    public function get m_allowSleep():Boolean
    public function set m_allowSleep(value:Boolean):void
m_bodyCountproperty 
m_bodyCount:int


Implementation
    public function get m_bodyCount():int
    public function set m_bodyCount(value:int):void
m_bodyListproperty 
public var m_bodyList:b2Body

m_contactListenerproperty 
public var m_contactListener:b2ContactListener

m_contactManagerproperty 
public var m_contactManager:b2ContactManager

m_continuousPhysicsproperty 
m_continuousPhysics:Boolean


Implementation
    public function get m_continuousPhysics():Boolean
    public function set m_continuousPhysics(value:Boolean):void
m_controllersproperty 
public var m_controllers:Dictionary

m_destructionListenerproperty 
public var m_destructionListener:b2DestructionListener

m_flagsproperty 
m_flags:int


Implementation
    public function get m_flags():int
    public function set m_flags(value:int):void
m_gravityproperty 
public var m_gravity:b2Vec2

m_groundBodyproperty 
public var m_groundBody:b2Body

m_jointCountproperty 
m_jointCount:int


Implementation
    public function get m_jointCount():int
    public function set m_jointCount(value:int):void
m_jointListproperty 
public var m_jointList:b2Joint

m_warmStartingproperty 
m_warmStarting:Boolean


Implementation
    public function get m_warmStarting():Boolean
    public function set m_warmStarting(value:Boolean):void
stepTimeproperty 
public var stepTime:int = 0

Constructor Detail
b2World()Constructor
public function b2World(g_or_p:*, s:Boolean = true, d:IEventDispatcher = null)



Parameters
g_or_p:*
 
s:Boolean (default = true)
 
d:IEventDispatcher (default = null)
Method Detail
AddController()method
public function AddController(c:b2Controller):void

Parameters

c:b2Controller

BeginContact()method 
public function BeginContact(c:int, a:b2Fixture, b:b2Fixture):void

Parameters

c:int
 
a:b2Fixture
 
b:b2Fixture

ClearForces()method 
public function ClearForces():*

Returns
*
CreateBody()method 
public function CreateBody(def:b2BodyDef = null):b2Body

Parameters

def:b2BodyDef (default = null)

Returns
b2Body
CreateJoint()method 
public function CreateJoint(def:b2JointDef, ed:IEventDispatcher = null):b2Joint

Parameters

def:b2JointDef
 
ed:IEventDispatcher (default = null)

Returns
b2Joint
destroy()method 
override public function destroy():void

DestroyBody()method 
public function DestroyBody(body:b2Body):void

Parameters

body:b2Body

DestroyJoint()method 
public function DestroyJoint(joint:b2Joint):void

Parameters

joint:b2Joint

EndContact()method 
public function EndContact(c:int, a:b2Fixture, b:b2Fixture):void

Parameters

c:int
 
a:b2Fixture
 
b:b2Fixture

GetAutoClearForces()method 
public function GetAutoClearForces():Boolean

Returns
Boolean
GetBodyCount()method 
public function GetBodyCount():int

Returns
int
GetBodyList()method 
public function GetBodyList():b2Body

Returns
b2Body
GetContactCount()method 
public function GetContactCount():int

Returns
int
GetContactList()method 
public function GetContactList():b2Contact

Returns
b2Contact
GetGravity()method 
public function GetGravity():V2

Returns
V2
GetJointCount()method 
public function GetJointCount():int

Returns
int
GetJointList()method 
public function GetJointList():b2Joint

Returns
b2Joint
GetProxyCount()method 
public function GetProxyCount():int

Returns
int
GetScreenBounds()method 
public function GetScreenBounds():AABB

Returns
AABB
HandleStep()method 
public function HandleStep(se:StepEvent):void

Parameters

se:StepEvent

IsLocked()method 
public function IsLocked():Boolean

Returns
Boolean
PostSolve()method 
public function PostSolve(c:int, a:b2Fixture, b:b2Fixture, i:int):void

Parameters

c:int
 
a:b2Fixture
 
b:b2Fixture
 
i:int

PreSolve()method 
public function PreSolve(c:int, a:b2Fixture, b:b2Fixture, o:int):void

Parameters

c:int
 
a:b2Fixture
 
b:b2Fixture
 
o:int

QueryAABB()method 
public function QueryAABB(callback:Function, aabb:AABB):void

Parameters

callback:Function
 
aabb:AABB

QueryPoint()method 
public function QueryPoint(callback:Function, p:V2):void

Parameters

callback:Function
 
p:V2

RayCast()method 
public function RayCast(callback:Function, point1:V2, point2:V2):void

Parameters

callback:Function
 
point1:V2
 
point2:V2

RemoveController()method 
public function RemoveController(c:b2Controller):void

Parameters

c:b2Controller

SayGoodbyeFixture()method 
public function SayGoodbyeFixture(f:b2Fixture):void

Parameters

f:b2Fixture

SayGoodbyeJoint()method 
public function SayGoodbyeJoint(j:b2Joint):void

Parameters

j:b2Joint

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

Parameters

flag:Boolean

SetContactListener()method 
public function SetContactListener(listener:b2ContactListener):void

Parameters

listener:b2ContactListener

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

Parameters

flag:Boolean

SetDestructionListener()method 
public function SetDestructionListener(listener:b2DestructionListener):void

Parameters

listener:b2DestructionListener

SetGravity()method 
public function SetGravity(gravity:V2):void

Parameters

gravity:V2

SetScreenBounds()method 
public function SetScreenBounds(bounds:AABB):void

Parameters

bounds:AABB

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

Parameters

flag:Boolean

Step()method 
public function Step(timeStep:Number, velocityIterations:int, positionIterations:int):void

Parameters

timeStep:Number
 
velocityIterations:int
 
positionIterations:int

Constant Detail
e_clearForcesConstant
public static const e_clearForces:* = 0x0004

e_lockedConstant 
public static const e_locked:int = 0x0002

e_newFixtureConstant 
public static const e_newFixture:int = 0x0001