Explosion
Class in Zigurous.Physics
Declaration
public class Explosion : MonoBehaviour
Description
Adds an explosion force to all rigidbodies within a set radius upon being triggered.
Properties
trigger | The type of trigger that causes the explosion. |
forceMode | The type of force applied to affected rigidbodies. |
layerMask | The layers that can be affected by the explosion. |
radius | The radius of the sphere within which the explosion has its effect. |
strength | The force strength of the explosion. |
upwardsModifier | An adjustment to the apparent position of the explosion to make it seem to lift objects. |
fuseTime | The amount of seconds before the explosion takes effect after being triggered. |
destroyOnExplode | Destroys the game object of the script after exploding. |
Methods
Explode | Triggers the explosion. |