19 #ifndef B2_GEAR_JOINT_H
20 #define B2_GEAR_JOINT_H
22 #include <Box2D/Dynamics/Joints/b2Joint.h>
73 float32 GetRatio()
const;
83 void InitVelocityConstraints(
const b2SolverData& data);
84 void SolveVelocityConstraints(
const b2SolverData& data);
85 bool SolvePositionConstraints(
const b2SolverData& data);
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;