| 363 | |
| 364 | |
| 365 | void 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 | |
| 381 | void dGeomSetQuaternion (dxGeom *g, const dQuaternion quat) |
no test coverage detected