Remove an object from the tree
| 167 | |
| 168 | // Remove an object from the tree |
| 169 | void 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 |