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

Function dGeomSetQuaternion

3rd_party/Src/ode/ode/src/collision_kernel.cpp:381–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380
381void dGeomSetQuaternion (dxGeom *g, const dQuaternion quat)
382{
383 dAASSERT (g && quat);
384 dUASSERT (g->gflags & GEOM_PLACEABLE,"geom must be placeable");
385 CHECK_NOT_LOCKED (g->parent_space);
386 if (g->body) {
387 // this will call dGeomMoved (g), so we don't have to
388 dBodySetQuaternion (g->body,quat);
389 }
390 else {
391 dQtoR (quat, g->R);
392 dGeomMoved (g);
393 }
394}
395
396
397const dReal * dGeomGetPosition (dxGeom *g)

Callers 1

setQuaternionMethod · 0.85

Calls 2

dBodySetQuaternionFunction · 0.85
dGeomMovedFunction · 0.85

Tested by

no test coverage detected