IMGUI_API void SetNextWindowSize(const ImVec2 &size, ImGuiCond cond=0)
float SetMinLength(float minLength)
float SetMaxLength(float maxLength)
b2Fixture * CreateFixture(const b2FixtureDef *def)
b2Body * GetBodyA()
Get the first body attached to this joint.
b2DistanceJoint * m_joint
float stiffness
The linear stiffness in N/m.
b2Body * GetBodyB()
Get the second body attached to this joint.
void SetTwoSided(const b2Vec2 &v1, const b2Vec2 &v2)
Set this as an isolated edge. Collision is two-sided.
void SetAsBox(float hx, float hy)
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
A rigid body. These are created via b2World::CreateBody.
void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchorA, const b2Vec2 &anchorB)
b2Joint * CreateJoint(const b2JointDef *def)
bool collideConnected
Set this flag to true if the attached bodies should collide.
void Set(float x_, float y_)
Set this vector to some specified coordinates.
B2_API void b2LinearStiffness(float &stiffness, float &damping, float frequencyHertz, float dampingRatio, const b2Body *bodyA, const b2Body *bodyB)
Utility to compute linear stiffness values from frequency and damping ratio.
float length
The rest length of this joint. Clamped to a stable minimum value.
IMGUI_API void SetNextWindowPos(const ImVec2 &pos, ImGuiCond cond=0, const ImVec2 &pivot=ImVec2(0, 0))
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)
float SetLength(float length)
void SetDamping(float damping)
Set/get linear damping in N*s/m.
b2Body * bodyA
The first attached body.
float damping
The linear damping in N*s/m.
void SetStiffness(float stiffness)
Set/get the linear stiffness in N/m.
b2Body * CreateBody(const b2BodyDef *def)
b2Body * bodyB
The second attached body.