I want to create physics for an explosion in my game. If I want to do this in 3D there is a function called Rigidbody.AddExplosionForce which I can use to achieve this effect. This function is not available in RigidBody2D, does anybody know another way to do this?
I know there are some box2d implementations in the asset store, but I don’t know how well they work together with unity 4.3 since unity also uses box2d now, and from the descriptions I can’t make up if they even have a feature like this implemented.
This function has not yet made it in to the feature set but it will be in an upcoming release. For now you can simply create some primitive sprites to use as explosion colliders and apply a force to any collision bodies based on if these primitive sprites hit anything.
Thanks!
Are you sure this is something that they are working on?
I considered this myself, but it seems like a lot of overhead for explosion physics.
But I can’t think of anything else that would have the same effect.
So you mean creating small particles(sprites) and shooting them in all directions from the explosion center?