IMGUI_API void SetNextWindowSize(const ImVec2 &size, ImGuiCond cond=0)
b2Fixture * CreateFixture(const b2FixtureDef *def)
void SetMotorSpeed(float speed)
Set the motor speed, usually in meters per second.
float lowerTranslation
The lower translation limit, usually in meters.
void SetTwoSided(const b2Vec2 &v1, const b2Vec2 &v2)
Set this as an isolated edge. Collision is two-sided.
b2PrismaticJoint * m_joint
void SetAsBox(float hx, float hy)
float GetMotorForce(float inv_dt) const
Get the current motor force given the inverse time step, usually in N.
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
A rigid body. These are created via b2World::CreateBody.
float maxMotorForce
The maximum motor torque, usually in N-m.
b2Joint * CreateJoint(const b2JointDef *def)
float motorSpeed
The desired motor speed in radians per second.
void Set(float x_, float y_)
Set this vector to some specified coordinates.
bool enableLimit
Enable/disable the joint limit.
void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor, const b2Vec2 &axis)
float angle
The world angle of the body in radians.
void EnableLimit(bool flag)
Enable/disable the joint limit.
IMGUI_API void SetNextWindowPos(const ImVec2 &pos, ImGuiCond cond=0, const ImVec2 &pivot=ImVec2(0, 0))
float upperTranslation
The upper translation limit, usually in meters.
IMGUI_API bool SliderFloat(const char *label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f)
bool enableMotor
Enable/disable the joint motor.
int RegisterTest(const char *category, const char *name, TestCreateFcn *fcn)
IMGUI_API bool Checkbox(const char *label, bool *v)
void EnableMotor(bool flag)
Enable/disable the joint motor.
void DrawString(int x, int y, const char *string,...)
virtual void Step(Settings &settings)
void Step(Settings &settings) override
b2Body * CreateBody(const b2BodyDef *def)