19 #ifndef B2_WELD_JOINT_H 
   20 #define B2_WELD_JOINT_H 
   22 #include <Box2D/Dynamics/Joints/b2Joint.h> 
   82     float32 GetFrequency()
 const { 
return m_frequencyHz; }
 
   86     float32 GetDampingRatio()
 const { 
return m_dampingRatio; }
 
  101     float32 m_frequencyHz;
 
  102     float32 m_dampingRatio;
 
  108     float32 m_referenceAngle;
 
A 2D column vector with 3 elements. 
Definition: b2Math.h:144
b2Body * bodyA
The first attached body. 
Definition: b2Joint.h:92
b2Vec2 localAnchorB
The local anchor point relative to bodyB's origin. 
Definition: b2WeldJoint.h:47
A 3-by-3 matrix. Stored in column-major order. 
Definition: b2Math.h:257
void SetFrequency(float32 hz)
Set/get frequency in Hz. 
Definition: b2WeldJoint.h:81
b2Body * bodyB
The second attached body. 
Definition: b2Joint.h:95
Definition: b2Joint.h:103
const b2Vec2 & GetLocalAnchorB() const 
The local anchor point relative to bodyB's origin. 
Definition: b2WeldJoint.h:75
Definition: b2WeldJoint.h:62
void Set(float32 x_, float32 y_)
Set this vector to some specified coordinates. 
Definition: b2Math.h:65
b2Vec2 GetReactionForce(float32 inv_dt) const 
Get the reaction force on bodyB at the joint anchor in Newtons. 
Definition: b2WeldJoint.cpp:318
const b2Vec2 & GetLocalAnchorA() const 
The local anchor point relative to bodyA's origin. 
Definition: b2WeldJoint.h:72
Definition: b2WeldJoint.h:27
float32 GetReactionTorque(float32 inv_dt) const 
Get the reaction torque on bodyB in N*m. 
Definition: b2WeldJoint.cpp:324
b2JointType type
The joint type is set automatically for concrete joint types. 
Definition: b2Joint.h:86
Solver Data. 
Definition: b2TimeStep.h:63
float32 frequencyHz
Definition: b2WeldJoint.h:54
Joint definitions are used to construct joints. 
Definition: b2Joint.h:74
void Dump()
Dump to b2Log. 
Definition: b2WeldJoint.cpp:329
void SetDampingRatio(float32 ratio)
Set/get damping ratio. 
Definition: b2WeldJoint.h:85
b2Vec2 localAnchorA
The local anchor point relative to bodyA's origin. 
Definition: b2WeldJoint.h:44
A rigid body. These are created via b2World::CreateBody. 
Definition: b2Body.h:126
b2Vec2 GetAnchorB() const 
Get the anchor point on bodyB in world coordinates. 
Definition: b2WeldJoint.cpp:313
float32 GetReferenceAngle() const 
Get the reference angle. 
Definition: b2WeldJoint.h:78
A 2D column vector. 
Definition: b2Math.h:53
float32 referenceAngle
The bodyB angle minus bodyA angle in the reference state (radians). 
Definition: b2WeldJoint.h:50
b2Vec2 GetAnchorA() const 
Get the anchor point on bodyA in world coordinates. 
Definition: b2WeldJoint.cpp:308
float32 dampingRatio
The damping ratio. 0 = no damping, 1 = critical damping. 
Definition: b2WeldJoint.h:57
void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor)
Definition: b2WeldJoint.cpp:37