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

Function dCollideRMS

ogsr_engine/xrGame/dRayMotions.cpp:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int dCollideRMS(dxGeom* o1, dxGeom* o2, int flags, dContactGeom* contact, int skip)
42{
43 dxRayMotions* rm = (dxRayMotions*)dGeomGetClassData(o1);
44 int ret = dCollideRaySphere(rm->ray, o2, flags, contact, skip);
45 for (int i = 0; i < ret; i++)
46 {
47 dContactGeom* c = CONTACT(contact, skip * i);
48 c->g1 = rm->ray_ownwer;
49 // c->depth*=60.f;
50 }
51 return ret;
52}
53
54inline void revert_contact(dContactGeom* c)
55{

Callers

nothing calls this directly

Calls 3

dGeomGetClassDataFunction · 0.85
dCollideRaySphereFunction · 0.85
CONTACTFunction · 0.70

Tested by

no test coverage detected