19 #ifndef B2_PRISMATIC_JOINT_H
20 #define B2_PRISMATIC_JOINT_H
22 #include <Box2D/Dynamics/Joints/b2Joint.h>
34 type = e_prismaticJoint;
126 void SetLimits(float32 lower, float32 upper);
142 float32 GetMaxMotorForce()
const {
return m_maxMotorForce; }
155 void InitVelocityConstraints(
const b2SolverData& data);
156 void SolveVelocityConstraints(
const b2SolverData& data);
157 bool SolvePositionConstraints(
const b2SolverData& data);
164 float32 m_referenceAngle;
166 float32 m_motorImpulse;
167 float32 m_lowerTranslation;
168 float32 m_upperTranslation;
169 float32 m_maxMotorForce;
170 float32 m_motorSpeed;
173 b2LimitState m_limitState;