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

Function dGeomSetRotation

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

Source from the content-addressed store, hash-verified

363
364
365void dGeomSetRotation (dxGeom *g, const dMatrix3 R)
366{
367 dAASSERT (g && R);
368 dUASSERT (g->gflags & GEOM_PLACEABLE,"geom must be placeable");
369 CHECK_NOT_LOCKED (g->parent_space);
370 if (g->body) {
371 // this will call dGeomMoved (g), so we don't have to
372 dBodySetRotation (g->body,R);
373 }
374 else {
375 memcpy (g->R,R,sizeof(dMatrix3));
376 dGeomMoved (g);
377 }
378}
379
380
381void dGeomSetQuaternion (dxGeom *g, const dQuaternion quat)

Callers 6

dGeomRaySetFunction · 0.85
setRotationMethod · 0.85
add_geomMethod · 0.85
set_static_ref_formMethod · 0.85
set_local_form_btMethod · 0.85
set_positionMethod · 0.85

Calls 2

dBodySetRotationFunction · 0.85
dGeomMovedFunction · 0.85

Tested by

no test coverage detected