| 357 | |
| 358 | |
| 359 | void dBodySetQuaternion (dBodyID b, const dQuaternion q) |
| 360 | { |
| 361 | dAASSERT (b && q); |
| 362 | b->q[0] = q[0]; |
| 363 | b->q[1] = q[1]; |
| 364 | b->q[2] = q[2]; |
| 365 | b->q[3] = q[3]; |
| 366 | dNormalize4 (b->q); |
| 367 | dQtoR (b->q,b->R); |
| 368 | |
| 369 | // notify all attached geoms that this body has moved |
| 370 | for (dxGeom *geom = b->geom; geom; geom = dGeomGetBodyNext (geom)) |
| 371 | dGeomMoved (geom); |
| 372 | } |
| 373 | |
| 374 | |
| 375 | void dBodySetLinearVel (dBodyID b, dReal x, dReal y, dReal z) |
no test coverage detected