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

Method get_AngularVel

ogsr_engine/xrGame/PHElement.cpp:1011–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)))
1014 {
1015 velocity.set(0, 0, 0);
1016 return;
1017 }
1018 dVectorSet((dReal*)&velocity, dBodyGetAngularVel(m_body));
1019}
1020
1021void CPHElement::set_LinearVel(const Fvector& velocity)
1022{

Callers

nothing calls this directly

Calls 5

dBodyIsEnabledFunction · 0.85
dVectorSetFunction · 0.85
dBodyGetAngularVelFunction · 0.85
testMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected