How to Explode? Blasting whatever is nearby...
Posted: Thu May 06, 2010 8:19 am
Hey,
I would like to create an exploding object. all I would like it to do, is to apply force to all nearby objects based on distance, thus form an explosion.
Now if I had a couple of dozen objects or more, iterating everything could be a problem before every single explosion occurs. So I was wondering if there is a pre exisiting something or other such as Space.Explode(force, Radius) somewhere, and if not, what would be the best way to go about making one?
I don't want destroyable houses, or a million peices of junk flying about, but just a quick force push around my player controlled ball.
Any advice would be appreciated.
I would like to create an exploding object. all I would like it to do, is to apply force to all nearby objects based on distance, thus form an explosion.
Now if I had a couple of dozen objects or more, iterating everything could be a problem before every single explosion occurs. So I was wondering if there is a pre exisiting something or other such as Space.Explode(force, Radius) somewhere, and if not, what would be the best way to go about making one?
I don't want destroyable houses, or a million peices of junk flying about, but just a quick force push around my player controlled ball.
Any advice would be appreciated.