MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / dCollideRaySphere

Function dCollideRaySphere

3rd_party/Src/ode/ode/src/collision_std.cpp:1799–1810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1797
1798
1799int 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
1813int dCollideRayBox (dxGeom *o1, dxGeom *o2, int flags,

Callers 1

dCollideRMSFunction · 0.85

Calls 1

ray_sphere_helperFunction · 0.85

Tested by

no test coverage detected