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

Function space_geom_collider

3rd_party/Src/ode/ode/src/collision_kernel.cpp:56–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56static void space_geom_collider (void *data, dxGeom *o1, dxGeom *o2)
57{
58 SpaceGeomColliderData *d = (SpaceGeomColliderData*) data;
59 if (d->flags & NUMC_MASK) {
60 int n = dCollide (o1,o2,d->flags,d->contact,d->skip);
61 d->contact = CONTACT (d->contact,d->skip*n);
62 d->flags -= n;
63#ifndef dNODEBUG
64 if(d->flags<=0)
65 {
66 //char s[64];
67 //_snprintf (s,sizeof(s),"tmp %f,%f,%f \n avel %f,%f,%f",tmp[0],tmp[1],tmp[2],b->avel[0],b->avel[1],b->avel[2]);
68 //dUASSERT(0,"tmp %f,%f,%f \n avel %f,%f,%f",tmp[0],tmp[1],tmp[2],b->avel[0],b->avel[1],b->avel[2]);
69
70 dMessage(0, "Collider exceed contact buffer");
71 }
72
73#endif
74 }
75}
76
77
78static int dCollideSpaceGeom (dxGeom *o1, dxGeom *o2, int flags,

Callers

nothing calls this directly

Calls 3

dCollideFunction · 0.85
dMessageFunction · 0.85
CONTACTFunction · 0.70

Tested by

no test coverage detected