19 #ifndef B2_DISTANCE_JOINT_H
20 #define B2_DISTANCE_JOINT_H
22 #include <Box2D/Dynamics/Joints/b2Joint.h>
34 type = e_distanceJoint;
91 float32 GetLength()
const;
95 float32 GetFrequency()
const;
99 float32 GetDampingRatio()
const;
109 void InitVelocityConstraints(
const b2SolverData& data);
110 void SolveVelocityConstraints(
const b2SolverData& data);
111 bool SolvePositionConstraints(
const b2SolverData& data);
113 float32 m_frequencyHz;
114 float32 m_dampingRatio;
144 inline float32 b2DistanceJoint::GetLength()
const
154 inline float32 b2DistanceJoint::GetFrequency()
const
156 return m_frequencyHz;
161 m_dampingRatio = ratio;
164 inline float32 b2DistanceJoint::GetDampingRatio()
const
166 return m_dampingRatio;