Hello guys,
I seem to have problem regarding removal of objects inside of my physics-enabled scene. The purpose of my app is to stack objects on top of each other according to actual physics but I seem to encounter problems while removing objects from scene. I do this with “snap body” physics to attach them to an empty object outside viewing distance, mainly because removing physics body seems to be only removing rendered objects but it’s geometry remains hence stacking of objects on top of each other is messed up. Below I attach a screenshot with puzzles executing the program (displaying console that shows objects from array).
How do I remove objects completely (as in destroying them wholly) from scene so I don’t end up with a mess of meshes?