Explosion physics effect

Can someone help with making an explosion.

At the moment my projectile hits objects, and the kinetic energy makes the objects fall over.

What I would like to do is simulate an high explosive warhead.

ie. when the projectile ie. a grenade hits, it generates an explosive force on objects nearby. [import]uid: 63413 topic_id: 11492 reply_id: 311492[/import]

Check out Particle Candy - it’s got a few explosion examples that fit your description. [import]uid: 40033 topic_id: 11492 reply_id: 41720[/import]

I have paricle candy, but I didn’t think it could apply physics to bodies in corona, ie I thought it only makes visual effects. [import]uid: 63413 topic_id: 11492 reply_id: 41800[/import]

Maybe this will help? http://mobile.tutsplus.com/tutorials/corona/corona-sdk_physics_explosions/

You can adjust the explosion radius. [import]uid: 67862 topic_id: 11492 reply_id: 42411[/import]

Thanks [import]uid: 63413 topic_id: 11492 reply_id: 42462[/import]

Thanks Andy.

The the tute you pointed out was helpful.

However, I put that code in my app, and I call the set bomb on to spawn a bomb when the missile hits.

ie. When the missile hits the onCollision event is called, and then I run the code to spawn a bomb.

The problem is that the Corona Simulator crashes and no useful information is presented in the debug window.

I’ve isolated the crash to the physics.addBody line that adds the invisible circle. [import]uid: 63413 topic_id: 11492 reply_id: 42823[/import]

do you have any code to share? Maybe we can see what went wrong starting from your existing code.

Thanks. [import]uid: 12455 topic_id: 11492 reply_id: 42834[/import]