Go to the documentation of this file.
51 sd.SetAsBox(10.0
f, 2.0
f,
b2Vec2(0.0
f, 20.0
f), 0.0
f);
173 if (
d.LengthSquared() < FLT_EPSILON * FLT_EPSILON)
IMGUI_API void SetNextWindowPos(const ImVec2 &pos, ImGuiCond cond=0, const ImVec2 &pivot=ImVec2(0, 0))
void ApplyForce(const b2Vec2 &force, const b2Vec2 &point, bool wake)
void Step(Settings &settings) override
A rigid body. These are created via b2World::CreateBody.
void Set(float x_, float y_)
Set this vector to some specified coordinates.
void BeginContact(b2Contact *contact) override
Called when two fixtures begin to touch.
void SetTwoSided(const b2Vec2 &v1, const b2Vec2 &v2)
Set this as an isolated edge. Collision is two-sided.
void EndContact(b2Contact *contact) override
Called when two fixtures cease to touch.
IMGUI_API bool SliderFloat(const char *label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f)
IMGUI_API void SetNextWindowSize(const ImVec2 &size, ImGuiCond cond=0)
b2Body * m_bodies[e_count]
b2Body * CreateBody(const b2BodyDef *def)
@ ImGuiWindowFlags_NoMove
int RegisterTest(const char *category, const char *name, TestCreateFcn *fcn)
b2BodyUserData & GetUserData()
Get the user data pointer that was provided in the body definition.
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
const b2Vec2 & GetPosition() const
uintptr_t pointer
For legacy compatibility.
virtual void Step(Settings &settings)
@ ImGuiWindowFlags_NoResize
b2Vec2 GetWorldPoint(const b2Vec2 &localPoint) const
b2BodyUserData userData
Use this to store application specific body data.
b2Fixture * CreateFixture(const b2FixtureDef *def)
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:08