MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / removeObject

Method removeObject

src/collision/broadphase/DynamicAABBTree.cpp:169–177  ·  view source on GitHub ↗

Remove an object from the tree

Source from the content-addressed store, hash-verified

167
168// Remove an object from the tree
169void DynamicAABBTree::removeObject(int32 nodeID) {
170
171 assert(nodeID >= 0 && nodeID < mNbAllocatedNodes);
172 assert(mNodes[nodeID].isLeaf());
173
174 // Remove the node from the tree
175 removeLeafNode(nodeID);
176 releaseNode(nodeID);
177}
178
179// Update the dynamic tree after an object has moved.
180/// If the new AABB of the object that has moved is still inside its fat AABB, then

Callers 1

removeColliderMethod · 0.80

Calls 1

isLeafMethod · 0.80

Tested by

no test coverage detected