+void placeEntity(PhysicsEntity* p)
+{
+ Ball* b = dynamic_cast<Ball*>(p);
+
+ if( b == NULL )
+ {
+ DPF(0, "ENTITY TYPE NOT SUPPORTED BY placeEntity()!!");
+ return;
+ }
+
+ const float& xb = b->positionRaw().x;
+ const float& yb = b->positionRaw().y;
+ const float& rad = b->radius;
+
+ for( int x = (int)(xb - rad);
+ x < (int)(xb + rad);
+ x++ )
+ {
+ if(x < 0 || xDivisions <= x)
+ break;
+
+ for( int y = (int)(yb - rad);
+ y < (int)(yb + rad);
+ y++ )
+ {
+ if(y < 0 || yDivisions <= y)
+ break;
+
+ divisions[x][y].insert(p);
+ }
+ }