| 318 | } |
| 319 | |
| 320 | void xSphereHitsBound(const xSphere* o, const xBound* b, xCollis* c) |
| 321 | { |
| 322 | switch (b->type) |
| 323 | { |
| 324 | case XBOUND_TYPE_SPHERE: |
| 325 | { |
| 326 | xSphereHitsSphere(o, &b->sph, c); |
| 327 | break; |
| 328 | } |
| 329 | case XBOUND_TYPE_OBB: |
| 330 | { |
| 331 | xBoundSphereHitsOBB(o, &b->box.box, b->mat, c); |
| 332 | break; |
| 333 | } |
| 334 | case XBOUND_TYPE_BOX: |
| 335 | { |
| 336 | xSphereHitsBox(o, &b->box.box, c); |
| 337 | break; |
| 338 | } |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | void xVecHitsBound(const xVec3* v, const xBound* b, xCollis* c) |
| 343 | { |
no test coverage detected