Stores information about a explosion. More...
Public Member Functions | |
| void | ApplyForce (Rigidbody rigidbody) |
| Apply the explosion force on this rigidbody. | |
| Vector3 | CalculateExplosionForce (Transform transform) |
| Calculates the explosion force from a transform. | |
| Vector3 | CalculateExplosionForce (Vector3 point) |
| Calculates the explosion force from a point. | |
| float | CalculateForce (Transform transform) |
| Calculates the raw explosion force from a transform. | |
| float | CalculateForce (Vector3 point) |
| Calculates the raw explosion force from a point. | |
Public Attributes | |
| Vector3 | position |
| The position of the explosion. | |
| float | force |
| The force of the explosion. | |
| float | radius |
| The radius of the explosion. | |
| GameObject | explodeGameObject |
| The game object which exploded. | |
Stores information about a explosion.
| void ModWobblyLife.ExplodeData.ApplyForce | ( | Rigidbody | rigidbody | ) |
Apply the explosion force on this rigidbody.
| rigidbody |
| Vector3 ModWobblyLife.ExplodeData.CalculateExplosionForce | ( | Transform | transform | ) |
Calculates the explosion force from a transform.
| transform |
| Vector3 ModWobblyLife.ExplodeData.CalculateExplosionForce | ( | Vector3 | point | ) |
Calculates the explosion force from a point.
| point |
| float ModWobblyLife.ExplodeData.CalculateForce | ( | Transform | transform | ) |
Calculates the raw explosion force from a transform.
| transform |
| float ModWobblyLife.ExplodeData.CalculateForce | ( | Vector3 | point | ) |
Calculates the raw explosion force from a point.
| point |
| GameObject ModWobblyLife.ExplodeData.explodeGameObject |
The game object which exploded.
| float ModWobblyLife.ExplodeData.force |
The force of the explosion.
| Vector3 ModWobblyLife.ExplodeData.position |
The position of the explosion.
| float ModWobblyLife.ExplodeData.radius |
The radius of the explosion.