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

Function dGeomSetPosition

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

Source from the content-addressed store, hash-verified

345
346
347void dGeomSetPosition (dxGeom *g, dReal x, dReal y, dReal z)
348{
349 dAASSERT (g);
350 dUASSERT (g->gflags & GEOM_PLACEABLE,"geom must be placeable");
351 CHECK_NOT_LOCKED (g->parent_space);
352 if (g->body) {
353 // this will call dGeomMoved (g), so we don't have to
354 dBodySetPosition (g->body,x,y,z);
355 }
356 else {
357 g->pos[0] = x;
358 g->pos[1] = y;
359 g->pos[2] = z;
360 dGeomMoved (g);
361 }
362}
363
364
365void dGeomSetRotation (dxGeom *g, const dMatrix3 R)

Callers 9

dGeomRaySetFunction · 0.85
setPositionMethod · 0.85
CreateMethod · 0.85
add_geomMethod · 0.85
set_static_ref_formMethod · 0.85
set_local_form_btMethod · 0.85
set_positionMethod · 0.85
SetBoxMethod · 0.85
CreateMethod · 0.85

Calls 2

dBodySetPositionFunction · 0.85
dGeomMovedFunction · 0.85

Tested by

no test coverage detected