I simply cleaned up your above code. I didn't look into the details...

Everything looks fine, but the physics engine is not going to like having all those objects stacked together, especially 3DGS ODE physics. Try using Newton, it handles this better, but you'll still get bad results...

You'll need to manually switch physics on/off for the bricks...


xXxGuitar511
- Programmer