Explosion


Declaration

public class Explosion : MonoBehaviour

Description

Adds an explosion force to all rigidbodies within a set radius upon being triggered.

Properties

triggerThe type of trigger that causes the explosion.
forceModeThe type of force applied to affected rigidbodies.
layerMaskThe layers that can be affected by the explosion.
radiusThe radius of the sphere within which the explosion has its effect.
strengthThe force strength of the explosion.
upwardsModifierAn adjustment to the apparent position of the explosion to make it seem to lift objects.
fuseTimeThe amount of seconds before the explosion takes effect after being triggered.
destroyOnExplodeDestroys the game object of the script after exploding.

Methods

ExplodeTriggers the explosion.