PackageBox2D.Dynamics
Classpublic class b2World
Inheritanceb2World Inheritance Object



Public Properties
 PropertyDefined By
  m_allowSleep : Boolean
b2World
  m_blockAllocator : *
b2World
  m_bodyCount : int
b2World
  m_bodyList : b2Body
b2World
  m_boundaryListener : b2BoundaryListener
b2World
  m_broadPhase : b2BroadPhase
b2World
  m_contactCount : int
b2World
  m_contactFilter : b2ContactFilter
b2World
  m_contactList : b2Contact
b2World
  m_contactListener : b2ContactListener
b2World
  m_contactManager : b2ContactManager
b2World
  m_continuousPhysics : Boolean
[static]
b2World
  m_debugDraw : b2DebugDraw
b2World
  m_destructionListener : b2DestructionListener
b2World
  m_gravity : b2Vec2
b2World
  m_groundBody : b2Body
b2World
  m_inv_dt0 : Number
b2World
  m_jointCount : int
b2World
  m_jointList : b2Joint
b2World
  m_lock : Boolean
b2World
  m_positionCorrection : Boolean
[static]
b2World
  m_positionIterationCount : int
b2World
  m_stackAllocator : *
b2World
  m_warmStarting : Boolean
[static]
b2World
Public Methods
 MethodDefined By
  
b2World(worldAABB:b2AABB, gravity:b2Vec2, doSleep:Boolean)
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
DrawJoint(joint:b2Joint):void
b2World
  
DrawShape(shape:b2Shape, xf:b2XForm, color:b2Color, core:Boolean):void
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
b2World
  
Query(aabb:b2AABB, shapes:Array, maxCount:int):int
b2World
  
Refilter(shape:b2Shape):void
b2World
  
b2World
  
b2World
  
b2World
  
SetContinuousPhysics(flag:Boolean):void
b2World
  
SetDebugDraw(debugDraw:b2DebugDraw):void
b2World
  
b2World
  
SetGravity(gravity:b2Vec2):void
b2World
  
SetPositionCorrection(flag:Boolean):void
b2World
  
SetWarmStarting(flag:Boolean):void
b2World
  
Solve(step:b2TimeStep):void
b2World
  
SolveTOI(step:b2TimeStep):void
b2World
  
Step(dt:Number, iterations:int):void
b2World
  
Validate():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_bodyListproperty 
public var m_bodyList:b2Body

m_boundaryListenerproperty 
public var m_boundaryListener:b2BoundaryListener

m_broadPhaseproperty 
public var m_broadPhase:b2BroadPhase

m_contactCountproperty 
public var m_contactCount:int

m_contactFilterproperty 
public var m_contactFilter:b2ContactFilter

m_contactListproperty 
public var m_contactList:b2Contact

m_contactListenerproperty 
public var m_contactListener:b2ContactListener

m_contactManagerproperty 
public var m_contactManager:b2ContactManager

m_continuousPhysicsproperty 
public static var m_continuousPhysics:Boolean

m_debugDrawproperty 
public var m_debugDraw:b2DebugDraw

m_destructionListenerproperty 
public var m_destructionListener:b2DestructionListener

m_gravityproperty 
public var m_gravity:b2Vec2

m_groundBodyproperty 
public var m_groundBody:b2Body

m_inv_dt0property 
public var m_inv_dt0:Number

m_jointCountproperty 
public var m_jointCount:int

m_jointListproperty 
public var m_jointList:b2Joint

m_lockproperty 
public var m_lock:Boolean

m_positionCorrectionproperty 
public static var m_positionCorrection:Boolean

m_positionIterationCountproperty 
public var m_positionIterationCount:int

m_stackAllocatorproperty 
public var m_stackAllocator:*

m_warmStartingproperty 
public static var m_warmStarting:Boolean

Constructor Detail
b2World()Constructor
public function b2World(worldAABB:b2AABB, gravity:b2Vec2, doSleep:Boolean)



Parameters
worldAABB:b2AABB
 
gravity:b2Vec2
 
doSleep:Boolean
Method Detail
CreateBody()method
public function CreateBody(def:b2BodyDef):b2Body

Parameters

def:b2BodyDef

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

Parameters

def:b2JointDef

Returns
b2Joint
DestroyBody()method 
public function DestroyBody(b:b2Body):void

Parameters

b:b2Body

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

Parameters

j:b2Joint

DrawDebugData()method 
public function DrawDebugData():void

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

Parameters

joint:b2Joint

DrawShape()method 
public function DrawShape(shape:b2Shape, xf:b2XForm, color:b2Color, core:Boolean):void

Parameters

shape:b2Shape
 
xf:b2XForm
 
color:b2Color
 
core: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
GetGroundBody()method 
public function GetGroundBody():b2Body

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

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

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

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

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

Parameters

aabb:b2AABB
 
shapes:Array
 
maxCount:int

Returns
int
Refilter()method 
public function Refilter(shape:b2Shape):void

Parameters

shape:b2Shape

SetBoundaryListener()method 
public function SetBoundaryListener(listener:b2BoundaryListener):void

Parameters

listener:b2BoundaryListener

SetContactFilter()method 
public function SetContactFilter(filter:b2ContactFilter):void

Parameters

filter:b2ContactFilter

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

Parameters

listener:b2ContactListener

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

Parameters

flag:Boolean

SetDebugDraw()method 
public function SetDebugDraw(debugDraw:b2DebugDraw):void

Parameters

debugDraw:b2DebugDraw

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

Parameters

listener:b2DestructionListener

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

Parameters

gravity:b2Vec2

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

Parameters

flag:Boolean

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

Parameters

flag:Boolean

Solve()method 
public function Solve(step:b2TimeStep):void

Parameters

step:b2TimeStep

SolveTOI()method 
public function SolveTOI(step:b2TimeStep):void

Parameters

step:b2TimeStep

Step()method 
public function Step(dt:Number, iterations:int):void

Parameters

dt:Number
 
iterations:int

Validate()method 
public function Validate():void