destroyProxy method

void destroyProxy(
  1. int proxyId
)
override

Destroy a proxy

Implementation

void destroyProxy(int proxyId) {
  assert(0 <= proxyId && proxyId < _nodeCapacity);
  DynamicTreeNode node = _nodes[proxyId];
  assert(node.child1 == null);

  _removeLeaf(node);
  _freeNode(node);
}