19 #ifndef B2_WHEEL_JOINT_H
20 #define B2_WHEEL_JOINT_H
22 #include <Box2D/Dynamics/Joints/b2Joint.h>
117 float32 GetMaxMotorTorque()
const;
124 float32 GetSpringFrequencyHz()
const;
128 float32 GetSpringDampingRatio()
const;
138 void InitVelocityConstraints(
const b2SolverData& data);
139 void SolveVelocityConstraints(
const b2SolverData& data);
140 bool SolvePositionConstraints(
const b2SolverData& data);
142 float32 m_frequencyHz;
143 float32 m_dampingRatio;
152 float32 m_motorImpulse;
153 float32 m_springImpulse;
155 float32 m_maxMotorTorque;
156 float32 m_motorSpeed;
170 float32 m_sAx, m_sBx;
171 float32 m_sAy, m_sBy;
175 float32 m_springMass;
186 inline float32 b2WheelJoint::GetMaxMotorTorque()
const
188 return m_maxMotorTorque;
196 inline float32 b2WheelJoint::GetSpringFrequencyHz()
const
198 return m_frequencyHz;
203 m_dampingRatio = ratio;
206 inline float32 b2WheelJoint::GetSpringDampingRatio()
const
208 return m_dampingRatio;