84 fd.
shape = &circle_shape;
IMGUI_API void SetNextWindowSize(const ImVec2 &size, ImGuiCond cond=0)
b2Fixture * CreateFixture(const b2FixtureDef *def)
float lowerAngle
The lower angle for the joint limit (radians).
float density
The density, usually in kg/m^2.
void SetMotorSpeed(float speed)
Set the motor speed in radians per second.
void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor)
void Step(Settings &settings) override
float GetMotorTorque(float inv_dt) const
b2RevoluteJoint * m_joint1
void SetTwoSided(const b2Vec2 &v1, const b2Vec2 &v2)
Set this as an isolated edge. Collision is two-sided.
void SetAsBox(float hx, float hy)
void EnableMotor(bool flag)
Enable/disable the joint motor.
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
A rigid body. These are created via b2World::CreateBody.
b2RevoluteJoint * m_joint2
b2Filter filter
Contact filtering data.
b2Joint * CreateJoint(const b2JointDef *def)
void Set(float x_, float y_)
Set this vector to some specified coordinates.
bool enableMotor
A flag to enable the joint motor.
IMGUI_API void SetNextWindowPos(const ImVec2 &pos, ImGuiCond cond=0, const ImVec2 &pivot=ImVec2(0, 0))
float motorSpeed
The desired motor speed. Usually in radians per second.
float upperAngle
The upper angle for the joint limit (radians).
IMGUI_API bool SliderFloat(const char *label, float *v, float v_min, float v_max, const char *format="%.3f", float power=1.0f)
int RegisterTest(const char *category, const char *name, TestCreateFcn *fcn)
IMGUI_API bool Checkbox(const char *label, bool *v)
bool enableLimit
A flag to enable joint limits.
void DrawString(int x, int y, const char *string,...)
void EnableLimit(bool flag)
Enable/disable the joint limit.
virtual void Step(Settings &settings)
b2Body * CreateBody(const b2BodyDef *def)