Home › Forums › Programming › Removing cloned objects from scene – problem/bug
Tagged: bug puzzles physics
- This topic has 6 replies, 2 voices, and was last updated 5 years ago by
matthew.
-
AuthorPosts
-
2020-09-30 at 7:25 am #33595
matthew
CustomerHello 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?
2020-09-30 at 7:50 am #33606matthew
Customer2020-09-30 at 8:05 am #33610matthew
Customer2020-09-30 at 8:57 am #33613
Yuri KovelenovStaff2020-09-30 at 9:04 am #33615matthew
CustomerHi Yuri, I already tried that but my problem is there’s 13 different kinds of objects to stack on top of each other and the problem with that approach would be – what if user decides to remove an object that is in the middle of the tower and the objects don’t move accordingly since they’re not responding to changes in the scene. I already tried that approach, but it failed. Maybe you could help me out with that? Or tell me what’s wrong with the physics engine : )?
2020-10-01 at 9:55 am #33671
Yuri KovelenovStaff2020-10-01 at 9:57 am #33673matthew
CustomerHi Yuri,
thank you for your reply. Will experiment some more and if I come up with a solution I will try to post it. Thanks for your help.
-
AuthorPosts
- You must be logged in to reply to this topic.



