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

Function dBodySetQuaternion

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

Source from the content-addressed store, hash-verified

357
358
359void dBodySetQuaternion (dBodyID b, const dQuaternion q)
360{
361 dAASSERT (b && q);
362 b->q[0] = q[0];
363 b->q[1] = q[1];
364 b->q[2] = q[2];
365 b->q[3] = q[3];
366 dNormalize4 (b->q);
367 dQtoR (b->q,b->R);
368
369 // notify all attached geoms that this body has moved
370 for (dxGeom *geom = b->geom; geom; geom = dGeomGetBodyNext (geom))
371 dGeomMoved (geom);
372}
373
374
375void dBodySetLinearVel (dBodyID b, dReal x, dReal y, dReal z)

Callers 6

dGeomSetQuaternionFunction · 0.85
setQuaternionMethod · 0.85
RepairMethod · 0.85
setQuaternionMethod · 0.85
ElementSingleSplitMethod · 0.85
new_stateMethod · 0.85

Calls 3

dNormalize4Function · 0.85
dGeomGetBodyNextFunction · 0.85
dGeomMovedFunction · 0.85

Tested by

no test coverage detected