måndag 24 augusti 2020

I'm back

 I had to focus on my Bachelor for a while and after that I had some health issues and needed a break but I'm back now to try and finish this thing. New courses are starting so updates might be sporadic but I'll try to finish it before the end of the semester. Now to the actual update.


I figured that the best way to do a breakable object was to do a custom mesh. That way you have control of all the verticies and can move them as needed. It's a bit cumbersome since you have to write out all the verticies and the rendered triangles manually but I'll figure out a way to semi-automate it later. I managed to create some geometry and to test if I could manipulate it properly I made a quick method that lets you click on the object to move half of the verticies up a bit, but that's when I realised a big problem. The object has a rigid body to make the physics easier, which is fine normally but the problem is that even when the mesh seperates into two objects, they are still treated as the same object by the rigid body.



To combat this I decided that I need to create a recursive class so that when the object splitts in two, it will create two new objects with the new specifications instead of trying to control the entire mesh by itself. I've started on this but havn't figured out all the specifics yet. 

Inga kommentarer:

Skicka en kommentar