addProxy method
Add the proxy into the broad-phase.
Implementation
@override
void addProxy(Proxy proxy) {
SAPProxy p = proxy as SAPProxy;
if(p.isDynamic()){
axesD[0].addElements( p.min[0], p.max[0] );
axesD[1].addElements( p.min[1], p.max[1] );
axesD[2].addElements( p.min[2], p.max[2] );
p.belongsTo = 1;
numElementsD += 2;
}
else {
axesS[0].addElements( p.min[0], p.max[0] );
axesS[1].addElements( p.min[1], p.max[1] );
axesS[2].addElements( p.min[2], p.max[2] );
p.belongsTo = 2;
numElementsS += 2;
}
}