- Select all the objects within the bomb's radius of influence.
- For each object
- Use the object position and the center of the explosion to calculate the vector of the impulse. Something like
normalize(object - center)
. - Use the distance from the center of the bomb to the object to calculate the magnitude of the impulse. Something like
(object - center).length
- Apply an impulse to the objectApply an impulse to the object using the vector and magnitude found in the previous steps.
As for calculating the magnitude you can start of with simple linear falloff, then move to other formulas if you don't like the results.