b2World
b2World
Box2D.DynamicsInheritance: System.Object
Constructors
b2World(b2Vec2)
b2World(b2Vec2)(Box2D.Common.b2Vec2 gravity)Parameters:
gravity (Box2D.Common.b2Vec2)Properties
AllowSleep(System.Boolean)
BodyCount(System.Int32)
BodyList(Box2D.Dynamics.b2Body)
ContactCount(System.Int32)
ContactManager(Box2D.Dynamics.b2ContactManager)
Flags(Box2D.Dynamics.b2WorldFlags)
Gravity(Box2D.Common.b2Vec2)
IsLocked(System.Boolean)
JointCount(System.Int32)
JointList(Box2D.Dynamics.Joints.b2Joint)
Methods
ClearForces()
ClearForces()()CreateBody(b2BodyDef)
Box2D.Dynamics.b2Body CreateBody(b2BodyDef)(Box2D.Dynamics.b2BodyDef def)Parameters:
def (Box2D.Dynamics.b2BodyDef)Returns:
Box2D.Dynamics.b2BodyCreateJoint(b2JointDef)
Box2D.Dynamics.Joints.b2Joint CreateJoint(b2JointDef)(Box2D.Dynamics.Joints.b2JointDef def)Parameters:
def (Box2D.Dynamics.Joints.b2JointDef)Returns:
Box2D.Dynamics.Joints.b2JointDestroyBody(b2Body)
DestroyBody(b2Body)(Box2D.Dynamics.b2Body b)Parameters:
b (Box2D.Dynamics.b2Body)DestroyJoint(b2Joint)
DestroyJoint(b2Joint)(Box2D.Dynamics.Joints.b2Joint j)Parameters:
j (Box2D.Dynamics.Joints.b2Joint)DrawDebugData()
DrawDebugData()()DrawJoint(b2Joint)
DrawJoint(b2Joint)(Box2D.Dynamics.Joints.b2Joint joint)Parameters:
joint (Box2D.Dynamics.Joints.b2Joint)DrawShape(b2Fixture, ref b2Transform, b2Color)
DrawShape(b2Fixture, ref b2Transform, b2Color)(Box2D.Dynamics.b2Fixture fixture, Box2D.Common.b2Transform xf, Box2D.Common.b2Color color)Parameters:
fixture (Box2D.Dynamics.b2Fixture)xf (Box2D.Common.b2Transform)color (Box2D.Common.b2Color)Dump()
Dump()()GetAllowSleeping()
System.Boolean GetAllowSleeping()()Returns:
System.BooleanExample
GetContinuousPhysics()
System.Boolean GetContinuousPhysics()()Returns:
System.BooleanGetProxyCount()
System.Int32 GetProxyCount()()Returns:
System.Int32GetSubStepping()
System.Boolean GetSubStepping()()Returns:
System.BooleanGetTreeBalance()
System.Int32 GetTreeBalance()()Returns:
System.Int32GetTreeHeight()
System.Int32 GetTreeHeight()()Returns:
System.Int32GetTreeQuality()
System.Single GetTreeQuality()()Returns:
System.SingleGetWarmStarting()
System.Boolean GetWarmStarting()()Returns:
System.BooleanQueryAABB(b2QueryCallback, b2AABB)
QueryAABB(b2QueryCallback, b2AABB)(Box2D.Dynamics.b2QueryCallback callback, Box2D.Collision.b2AABB aabb)Parameters:
callback (Box2D.Dynamics.b2QueryCallback)aabb (Box2D.Collision.b2AABB)RayCast(b2RayCastCallback, b2Vec2, b2Vec2)
RayCast(b2RayCastCallback, b2Vec2, b2Vec2)(Box2D.Dynamics.b2RayCastCallback callback, Box2D.Common.b2Vec2 point1, Box2D.Common.b2Vec2 point2)Parameters:
callback (Box2D.Dynamics.b2RayCastCallback)point1 (Box2D.Common.b2Vec2)point2 (Box2D.Common.b2Vec2)SetAllowSleeping(bool)
SetAllowSleeping(bool)(System.Boolean flag)Parameters:
flag (System.Boolean)SetContactFilter(b2ContactFilter)
SetContactFilter(b2ContactFilter)(Box2D.Dynamics.b2ContactFilter filter)Parameters:
filter (Box2D.Dynamics.b2ContactFilter)SetContactListener(b2ContactListener)
SetContactListener(b2ContactListener)(Box2D.Dynamics.b2ContactListener listener)Parameters:
listener (Box2D.Dynamics.b2ContactListener)SetContinuousPhysics(bool)
SetContinuousPhysics(bool)(System.Boolean flag)Parameters:
flag (System.Boolean)Example
SetDebugDraw(b2Draw)
SetDebugDraw(b2Draw)(Box2D.Common.b2Draw debugDraw)Parameters:
debugDraw (Box2D.Common.b2Draw)SetDestructionListener(b2DestructionListener)
SetDestructionListener(b2DestructionListener)(Box2D.Dynamics.b2DestructionListener listener)Parameters:
listener (Box2D.Dynamics.b2DestructionListener)SetSubStepping(bool)
SetSubStepping(bool)(System.Boolean flag)Parameters:
flag (System.Boolean)Example
SetWarmStarting(bool)
SetWarmStarting(bool)(System.Boolean flag)Parameters:
flag (System.Boolean)Example
Solve(b2TimeStep)
Solve(b2TimeStep)(Box2D.Dynamics.b2TimeStep step)Parameters:
step (Box2D.Dynamics.b2TimeStep)SolveTOI(b2TimeStep)
SolveTOI(b2TimeStep)(Box2D.Dynamics.b2TimeStep step)Parameters:
step (Box2D.Dynamics.b2TimeStep)Step(float, int, int)
Step(float, int, int)(System.Single dt, System.Int32 velocityIterations, System.Int32 positionIterations)Parameters:
dt (System.Single)velocityIterations (System.Int32)positionIterations (System.Int32)