I wanted to create a simple physics demo using compound shapes.
The ground is a static compound shape with one child Triangle mesh. The secene has spheres and cubes, every one is a combined shape with one child shape (box or sphere).
Now the simulation:
- Before starting the simulation I add the ground and cubes to the scene.
- Later I shoot spheres into the scene
The speheres collide with the ground BUT DO NOT COLLIDE NOT WITH THE cubes... and this problem appears ONLY in release mode. In debug mode everyting is fine. It is also all right when I add a few speheres before starting the simulation.
Did anyone faced the same problem before? Any suggestions?
(There is definately no difference in my source code between the release and the debug mode compilation.)
Thank you in advance!