| 1000 | dBodySetMass(m_body, &m_mass); |
| 1001 | } |
| 1002 | void CPHElement::get_LinearVel(Fvector& velocity) |
| 1003 | { |
| 1004 | if (!isActive() || (!m_flags.test(flAnimated) && !dBodyIsEnabled(m_body))) |
| 1005 | { |
| 1006 | velocity.set(0, 0, 0); |
| 1007 | return; |
| 1008 | } |
| 1009 | dVectorSet((dReal*)&velocity, dBodyGetLinearVel(m_body)); |
| 1010 | } |
| 1011 | void CPHElement::get_AngularVel(Fvector& velocity) |
| 1012 | { |
| 1013 | if (!isActive() || (!m_flags.test(flAnimated) && !dBodyIsEnabled(m_body))) |
nothing calls this directly
no test coverage detected