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

Function dCollideRMB

ogsr_engine/xrGame/dRayMotions.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28int dCollideRMB(dxGeom* o1, dxGeom* o2, int flags, dContactGeom* contact, int skip)
29{
30 dxRayMotions* rm = (dxRayMotions*)dGeomGetClassData(o1);
31 int ret = dCollideRayBox(rm->ray, o2, flags, contact, skip);
32 for (int i = 0; i < ret; i++)
33 {
34 dContactGeom* c = CONTACT(contact, skip * i);
35 c->g1 = rm->ray_ownwer;
36 // c->depth*=60.f;
37 }
38 return ret;
39}
40
41int dCollideRMS(dxGeom* o1, dxGeom* o2, int flags, dContactGeom* contact, int skip)
42{

Callers

nothing calls this directly

Calls 3

dGeomGetClassDataFunction · 0.85
dCollideRayBoxFunction · 0.85
CONTACTFunction · 0.70

Tested by

no test coverage detected