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

Function dBodySetRotation

3rd_party/Src/ode/ode/src/ode.cpp:341–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339
340
341void dBodySetRotation (dBodyID b, const dMatrix3 R)
342{
343 dAASSERT (b && R);
344 dQuaternion q;
345 dRtoQ (R,q);
346 dNormalize4 (q);
347 b->q[0] = q[0];
348 b->q[1] = q[1];
349 b->q[2] = q[2];
350 b->q[3] = q[3];
351 dQtoR (b->q,b->R);
352
353 // notify all attached geoms that this body has moved
354 for (dxGeom *geom = b->geom; geom; geom = dGeomGetBodyNext (geom))
355 dGeomMoved (geom);
356}
357
358
359void dBodySetQuaternion (dBodyID b, const dQuaternion q)

Callers 8

dGeomSetRotationFunction · 0.85
setRotationMethod · 0.85
ActivateBoxDynamicMethod · 0.85
SetTransformMethod · 0.85
TransformPositionMethod · 0.85
set_rotationMethod · 0.85
PhDataUpdateMethod · 0.85
new_stateMethod · 0.85

Calls 3

dNormalize4Function · 0.85
dGeomGetBodyNextFunction · 0.85
dGeomMovedFunction · 0.85

Tested by

no test coverage detected