PackageBox2D.Dynamics
Classpublic class b2World



Public Properties
 PropertyDefined by
  m_allowSleep : Boolean
b2World
  m_blockAllocator : *
b2World
  m_bodyCount : int
b2World
  m_bodyDestroyList : b2Body
b2World
  m_bodyList : b2Body
b2World
  m_broadPhase : b2BroadPhase
b2World
  m_contactCount : int
b2World
  m_contactList : b2Contact
b2World
  m_contactManager : b2ContactManager
b2World
  m_filter : b2CollisionFilter
b2World
  m_gravity : b2Vec2
b2World
  m_groundBody : b2Body
b2World
  m_jointCount : int
b2World
  m_jointList : b2Joint
b2World
  m_listener : b2WorldListener
b2World
  m_positionIterationCount : int
b2World
  m_stackAllocator : *
b2World
  s_enablePositionCorrection : int = 1
[static]
b2World
  s_enableWarmStarting : int = 1
[static]
b2World
Public Methods
 MethodDefined by
  
b2World(worldAABB:b2AABB, gravity:b2Vec2, doSleep:Boolean)
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
Query(aabb:b2AABB, shapes:Array, maxCount:int):int
b2World
  
b2World
  
b2World
  
Step(dt:Number, iterations:int):void
b2World
Property detail
m_allowSleepproperty
public var m_allowSleep:Boolean
m_blockAllocatorproperty 
public var m_blockAllocator:*
m_bodyCountproperty 
public var m_bodyCount:int
m_bodyDestroyListproperty 
public var m_bodyDestroyList:b2Body
m_bodyListproperty 
public var m_bodyList:b2Body
m_broadPhaseproperty 
public var m_broadPhase:b2BroadPhase
m_contactCountproperty 
public var m_contactCount:int
m_contactListproperty 
public var m_contactList:b2Contact
m_contactManagerproperty 
public var m_contactManager:b2ContactManager
m_filterproperty 
public var m_filter:b2CollisionFilter
m_gravityproperty 
public var m_gravity:b2Vec2
m_groundBodyproperty 
public var m_groundBody:b2Body
m_jointCountproperty 
public var m_jointCount:int
m_jointListproperty 
public var m_jointList:b2Joint
m_listenerproperty 
public var m_listener:b2WorldListener
m_positionIterationCountproperty 
public var m_positionIterationCount:int
m_stackAllocatorproperty 
public var m_stackAllocator:*
s_enablePositionCorrectionproperty 
public static var s_enablePositionCorrection:int = 1
s_enableWarmStartingproperty 
public static var s_enableWarmStarting:int = 1
Constructor detail
b2World()constructor
public function b2World(worldAABB:b2AABB, gravity:b2Vec2, doSleep:Boolean)Parameters
worldAABB:b2AABB
 
gravity:b2Vec2
 
doSleep:Boolean
Method detail
CleanBodyList()method
public function CleanBodyList():void
CreateBody()method 
public function CreateBody(def:b2BodyDef):b2BodyParameters
def:b2BodyDef

Returns
b2Body
CreateJoint()method 
public function CreateJoint(def:b2JointDef):b2JointParameters
def:b2JointDef

Returns
b2Joint
DestroyBody()method 
public function DestroyBody(b:b2Body):voidParameters
b:b2Body
DestroyJoint()method 
public function DestroyJoint(j:b2Joint):voidParameters
j:b2Joint
GetBodyList()method 
public function GetBodyList():b2Body

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

Returns
b2Contact
GetGroundBody()method 
public function GetGroundBody():b2Body

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

Returns
b2Joint
Query()method 
public function Query(aabb:b2AABB, shapes:Array, maxCount:int):intParameters
aabb:b2AABB
 
shapes:Array
 
maxCount:int

Returns
int
SetFilter()method 
public function SetFilter(filter:b2CollisionFilter):voidParameters
filter:b2CollisionFilter
SetListener()method 
public function SetListener(listener:b2WorldListener):voidParameters
listener:b2WorldListener
Step()method 
public function Step(dt:Number, iterations:int):voidParameters
dt:Number
 
iterations:int