Header Ads

2D Explosion Force | Unity Game Engine

2D Explosion Force

Adding explosion force on dynamic 2D sprites in Unity Game Engine

Here’s the easiest solution if you really need to add explosion force on 2D Rigid Body in Unity Game Engine which feature is currently missing from the current build of Unity Game Engine. It consists of a single script and only have two attributes (Power, Radius) to control the explosion power and to define the impact area.

Add the script on any sprite having RigidBody2D element attached on it.

Define the explosion power and area through attributes and immediately it will be starting to respond to the nearest mouse click. Here's the mouse click assigned as the point of explosion. This script is also applicable for iOS and Android platforms where it detects touches as point of explosion.  

Click HERE for demo.


No comments