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

Function dBodySetPosition

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

Source from the content-addressed store, hash-verified

326
327
328void dBodySetPosition (dBodyID b, dReal x, dReal y, dReal z)
329{
330 dAASSERT (b);
331 b->pos[0] = x;
332 b->pos[1] = y;
333 b->pos[2] = z;
334
335 // notify all attached geoms that this body has moved
336 for (dxGeom *geom = b->geom; geom; geom = dGeomGetBodyNext (geom))
337 dGeomMoved (geom);
338}
339
340
341void dBodySetRotation (dBodyID b, const dMatrix3 R)

Callers 15

dGeomSetPositionFunction · 0.85
setPositionMethod · 0.85
RepairMethod · 0.85
PhDataUpdateMethod · 0.85
buildMethod · 0.85
SetTransformMethod · 0.85
TransformPositionMethod · 0.85
CreateMethod · 0.85
SetPositionMethod · 0.85
SafeAndLimitVelocityMethod · 0.85
PullingUpdateMethod · 0.85

Calls 2

dGeomGetBodyNextFunction · 0.85
dGeomMovedFunction · 0.85

Tested by

no test coverage detected