19 #ifndef B2_GEAR_JOINT_H 20 #define B2_GEAR_JOINT_H 22 #include <Box2D/Dynamics/Joints/b2Joint.h> 62 b2Vec2 GetReactionForce(float32 inv_dt)
const;
63 float32 GetReactionTorque(float32 inv_dt)
const;
72 void SetRatio(float32
ratio);
73 float32 GetRatio()
const;
107 float32 m_referenceAngleA;
108 float32 m_referenceAngleB;
116 int32 m_indexA, m_indexB, m_indexC, m_indexD;
117 b2Vec2 m_lcA, m_lcB, m_lcC, m_lcD;
118 float32 m_mA, m_mB, m_mC, m_mD;
119 float32 m_iA, m_iB, m_iC, m_iD;
121 float32 m_JwA, m_JwB, m_JwC, m_JwD;
b2Joint * joint1
The first revolute/prismatic joint attached to the gear joint.
Definition: b2GearJoint.h:37
Definition: b2Joint.h:103
Definition: b2GearJoint.h:56
b2Joint * joint2
The second revolute/prismatic joint attached to the gear joint.
Definition: b2GearJoint.h:40
float32 ratio
Definition: b2GearJoint.h:44
b2Joint * GetJoint1()
Get the first joint.
Definition: b2GearJoint.h:66
b2JointType type
The joint type is set automatically for concrete joint types.
Definition: b2Joint.h:86
Solver Data.
Definition: b2TimeStep.h:63
Joint definitions are used to construct joints.
Definition: b2Joint.h:74
A rigid body. These are created via b2World::CreateBody.
Definition: b2Body.h:126
A 2D column vector.
Definition: b2Math.h:53
Definition: b2GearJoint.h:26
b2Joint * GetJoint2()
Get the second joint.
Definition: b2GearJoint.h:69