Explosions
Forum » General / Help » Explosions
Started by: FurballFurball
On: 1257584036|%e %b %Y, %H:%M %Z|agohover
Number of posts: 2
rss icon RSS: New posts
Explosions
FurballFurball 1257584036|%e %b %Y, %H:%M %Z|agohover

How would you go about setting up explosions, where you can vary the size and other things and have it semi realistically displace the objects around it?

unfold Explosions by FurballFurball, 1257584036|%e %b %Y, %H:%M %Z|agohover
Re: Explosions
VaaaanVaaaan 1257620036|%e %b %Y, %H:%M %Z|agohover

I don't really know, but I'd try something like

1. Loop through all the objects within a bounding sphere 'blast radius' centered at the explosion point.
2. Apply a force on each object that originates at the center of the blast, with an inverse relationship to distance.
3. Optionally apply a small random rotation factor to each object so they don't just separate perfectly in the same positions.

That actually sounds kinda fun..

unfold Re: Explosions by VaaaanVaaaan, 1257620036|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License