- Home /
Destroy Mesh Renderer under physics possible?
hey guys. So I have a scene in which the player can fire up gameobjects which are mesh renderer. Now I was thinking about destroying the objects over time while the fire is burning. Physics based ofc. Is there any simple method to do that or is it a lot of work?
Answer by Tehnique · Aug 22, 2014 at 08:49 AM
You probably mean destroy as in "change the model" so it looks burned, right? You could have different versions of your object (undamaged, damaged, badly damaged, destroyed) and switch them. Other than that, yeah, it's almost impossible to do it with complex models.
There are some assets in the asset store that might help you. Like this one, for example. I had to do the same with a door (I needed the door to break when hit multiple times). My solution was to animate the door in Max and have an animation controller set the door state depending on a damage parameter. You could also try this solution.
Ah ok, ty for the fast response. I guess I will go with the destroy over time script, that comes with the standard assets. Is the easiest way i guess :D
Your answer
Follow this Question
Related Questions
Using your own mesh for collision? 2 Answers
How to go about filling the gaps between segmented objects connected with hinge joints? 0 Answers
Generating a convex hull 3 Answers
Non-Convex Mesh Collider triangle limit - is it more than 255? 0 Answers
Skinning between separate meshes hinged together with physics 1 Answer