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

Method add

3rd_party/Src/ode/ode/src/collision_quadtreespace.cpp:467–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void dxQuadTreeSpace::add(dxGeom* g){
468 CHECK_NOT_LOCKED (this);
469 dAASSERT(g);
470 dUASSERT(g->parent_space == 0 && g->next == 0, "geom is already in a space");
471
472 g->gflags |= GEOM_DIRTY | GEOM_AABB_BAD;
473 DirtyList.push(g);
474
475 // add
476 g->parent_space = this;
477 Blocks[0].GetBlock(g->aabb)->AddObject(g); // Add to best block
478 count++;
479
480 // enumerator has been invalidated
481 current_geom = 0;
482
483 dGeomMoved(this);
484}
485
486void dxQuadTreeSpace::remove(dxGeom* g){
487 CHECK_NOT_LOCKED(this);

Callers

nothing calls this directly

Calls 4

dGeomMovedFunction · 0.85
GetBlockMethod · 0.80
pushMethod · 0.45
AddObjectMethod · 0.45

Tested by

no test coverage detected