| 1797 | |
| 1798 | |
| 1799 | int dCollideRaySphere (dxGeom *o1, dxGeom *o2, int flags, |
| 1800 | dContactGeom *contact, int skip) |
| 1801 | { |
| 1802 | dIASSERT (skip >= (int)sizeof(dContactGeom)); |
| 1803 | dIASSERT (o1->type == dRayClass); |
| 1804 | dIASSERT (o2->type == dSphereClass); |
| 1805 | dxRay *ray = (dxRay*) o1; |
| 1806 | dxSphere *sphere = (dxSphere*) o2; |
| 1807 | contact->g1 = ray; |
| 1808 | contact->g2 = sphere; |
| 1809 | return ray_sphere_helper (ray,sphere->pos,sphere->radius,contact,0); |
| 1810 | } |
| 1811 | |
| 1812 | |
| 1813 | int dCollideRayBox (dxGeom *o1, dxGeom *o2, int flags, |
no test coverage detected