Go to the documentation of this file.
72 void SetDebugDraw(
b2Draw* debugDraw);
83 void DestroyBody(
b2Body* body);
92 void DestroyJoint(
b2Joint* joint);
99 void Step(
float timeStep,
100 int32 velocityIterations,
101 int32 positionIterations);
133 const b2Body* GetBodyList()
const;
139 const b2Joint* GetJointList()
const;
150 void SetAllowSleeping(
bool flag);
166 int32 GetProxyCount()
const;
169 int32 GetBodyCount()
const;
172 int32 GetJointCount()
const;
175 int32 GetContactCount()
const;
178 int32 GetTreeHeight()
const;
181 int32 GetTreeBalance()
const;
185 float GetTreeQuality()
const;
188 void SetGravity(
const b2Vec2& gravity);
191 b2Vec2 GetGravity()
const;
194 bool IsLocked()
const;
197 void SetAutoClearForces(
bool flag);
200 bool GetAutoClearForces()
const;
205 void ShiftOrigin(
const b2Vec2& newOrigin);
222 friend class b2Controller;
b2StackAllocator m_stackAllocator
bool GetSubStepping() const
bool GetWarmStarting() const
void SetGravity(const b2Vec2 &gravity)
Change the global gravity vector.
bool GetAllowSleeping() const
void SetSubStepping(bool flag)
Enable/disable single stepped continuous physics. For testing.
int32 GetBodyCount() const
Get the number of bodies.
bool GetContinuousPhysics() const
A rigid body. These are created via b2World::CreateBody.
const b2Profile & GetProfile() const
Get the current profile.
bool GetAutoClearForces() const
Get the flag that controls automatic clearing of forces after each time step.
int32 GetJointCount() const
Get the number of joints.
b2ContactManager m_contactManager
Joint definitions are used to construct joints.
int32 GetContactCount() const
Get the number of contacts (each may have 0 or more contact points).
Color for debug drawing. Each value has the range [0,1].
bool IsLocked() const
Is the world locked (in the middle of a time step).
b2Contact * GetContactList()
b2BlockAllocator m_blockAllocator
An axis aligned bounding box.
void SetWarmStarting(bool flag)
Enable/disable warm starting. For testing.
void SetAutoClearForces(bool flag)
Set flag to control automatic clearing of forces after each time step.
Profiling data. Times are in milliseconds.
b2Vec2 GetGravity() const
Get the global gravity vector.
const b2ContactManager & GetContactManager() const
Get the contact manager for testing.
b2DestructionListener * m_destructionListener
This is an internal structure.
void SetContinuousPhysics(bool flag)
Enable/disable continuous physics. For testing.
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:07