getBalance method

double getBalance(
  1. DBVTNode node
)

Get the balance of the dynamic bounding volme node from its children

Implementation

double getBalance(DBVTNode node){
  if(node.proxy!=null)return 0;
  return node.child1!.height-node.child2!.height;
}