| 345 | |
| 346 | |
| 347 | void 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 | |
| 365 | void dGeomSetRotation (dxGeom *g, const dMatrix3 R) |
no test coverage detected