MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / get_LinearVel

Method get_LinearVel

ogsr_engine/xrGame/PHElement.cpp:1002–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1000 dBodySetMass(m_body, &m_mass);
1001}
1002void 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}
1011void CPHElement::get_AngularVel(Fvector& velocity)
1012{
1013 if (!isActive() || (!m_flags.test(flAnimated) && !dBodyIsEnabled(m_body)))

Callers

nothing calls this directly

Calls 5

dBodyIsEnabledFunction · 0.85
dVectorSetFunction · 0.85
dBodyGetLinearVelFunction · 0.85
testMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected