ExplosiveObject MonoBehaviour
Overview
The ExplosiveObject behaviour is used to create objects like barrels that spawn a PooledExplosion when killed.
Inspector

Properties
| Name | Type | Description |
|---|---|---|
| Explosion | PooledExplosion | The explosion object to spawn. |
| Offset | Vector3 | An offset from the object's origin that the explosion will spawn. |
| Damage | Float | The damage does at the center of the explosion. Drops off to zero at the edge of the radius. |
| Max Force | Float | The maximum force to be imparted onto any objects in the explosion's radius. Requires either a [Rigidbody][unity-rigidbody] or an impact handler and drops off to zero the further from the center the object is. |
| Takes Damage | DamageType | The type of damage the object can take. |
| Health | Float | The amount of health the object has. |
| Destroy Gameobject | Dropdown | What to do to the object when it's killed. Available options are: PoolOrDestroy, Disable, Nothing. |
| On Destroyed | UnityEvent | An event invoked when the item's health reaches zero |