| 123 | } |
| 124 | |
| 125 | void CPHCharacter::CutVelocity(float l_limit, float /*a_limit*/) |
| 126 | { |
| 127 | dVector3 limitedl, diffl; |
| 128 | if (dVectorLimit(dBodyGetLinearVel(m_body), l_limit, limitedl)) |
| 129 | { |
| 130 | dVectorSub(diffl, limitedl, dBodyGetLinearVel(m_body)); |
| 131 | dBodySetLinearVel(m_body, diffl[0], diffl[1], diffl[2]); |
| 132 | dBodySetAngularVel(m_body, 0.f, 0.f, 0.f); |
| 133 | dxStepBody(m_body, fixed_step); |
| 134 | dBodySetLinearVel(m_body, limitedl[0], limitedl[1], limitedl[2]); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | const Fmatrix& CPHCharacter::XFORM() const |
| 139 | { |
nothing calls this directly
no test coverage detected