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

Method bodyRemove

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

Source from the content-addressed store, hash-verified

251
252
253void dxGeom::bodyRemove()
254{
255 if (body) {
256 // delete this geom from body list
257 dxGeom **last = &body->geom, *g = body->geom;
258 while (g) {
259 if (g == this) {
260 *last = g->body_next;
261 break;
262 }
263 last = &g->body_next;
264 g = g->body_next;
265 }
266 body = 0;
267 body_next = 0;
268 }
269}
270
271//****************************************************************************
272// misc

Callers 1

dGeomSetBodyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected