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

Method SetBody

ogsr_engine/xrGame/PHInterpolation.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void CPHInterpolation::SetBody(dBodyID body)
17{
18 if (!body)
19 return;
20 m_body = body;
21 qPositions.fill_in(*((Fvector*)dBodyGetPosition(m_body)));
22 const dReal* dQ = dBodyGetQuaternion(m_body);
23 Fquaternion fQ;
24 fQ.set(-dQ[0], dQ[1], dQ[2], dQ[3]);
25 qRotations.fill_in(fQ);
26}
27
28void CPHInterpolation::UpdatePositions()
29{

Callers 6

SetChildMethod · 0.80
CreateMethod · 0.80
ActivateMethod · 0.80
buildMethod · 0.80
PresetActiveMethod · 0.80
CreateMethod · 0.80

Calls 4

dBodyGetPositionFunction · 0.85
dBodyGetQuaternionFunction · 0.85
fill_inMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected