i made a model of a glass and i did separate its meshes, how do i make it so that if something hits it, itll break. when i run the game engine they all just fly away as if they’re inside of each other. how do i set it up in a way that itll act in this way without using some sort of a voronoi script (i used the knife tool to make its vertices in that shape)
There’s a fracture addon with nice tools, you should first run ‘Fracture Object’, and maybe even do it again on different parts. Your object should have some thickness because it works with boolean operations. And then run ‘Setup Fracture Shards’ to make them rigid bodies…
In BGE you need to script something or setup some logic bricks. I attach a simple example I did where a message is sent after a collision, and each shard dynamics is restored. You can use object menu to copy logic bricks to many objects.
Other way would be to just go on with the knife. I did some tests with this the other day, you can see a somehow related video here. I played with Aligorith’s GSOC branch, so that is yet another cool option.
Attachments
copa.blend (182 KB)
sorry for a late reply, i tired to study this but its toooo complicated but thankss alot anyways ill stick to not breaking it