Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

i have a simple triangle mesh which i want to explode. so i am looking for an algorithm that makes every triangle to move outwards from the centerpoint. is there already something premade like this?

thanks!

share|improve this question
    
You're looking for particle systems, there's a great deal of material on that, can't give you any links off the top of my head though. Furthermore, if your models are made of too coarse a mesh, you'll need to look into tessellation and subdivision techniques to blow up larger patches of your mesh. –  falstro Dec 28 '10 at 20:12
    
add comment

2 Answers

Look into particle physics. Each vertex would be set up as one particle per triangle it is a part of and each would be pushed away from the explosion point using whatever force you want. To keep the triangles from warping as the particles move, add stick constraints for each edge (they're described in the article linked above). When the constraints are resolved, it will modify the particle movement and cause the triangles to move independently, flipping and rotating as they go.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.