Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
ModWobblyLife.ExplodeData Struct Reference

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.
 

Detailed Description

Stores information about a explosion.

Member Function Documentation

◆ ApplyForce()

void ModWobblyLife.ExplodeData.ApplyForce ( Rigidbody  rigidbody)

Apply the explosion force on this rigidbody.

Parameters
rigidbody

◆ CalculateExplosionForce() [1/2]

Vector3 ModWobblyLife.ExplodeData.CalculateExplosionForce ( Transform  transform)

Calculates the explosion force from a transform.

Parameters
transform
Returns

◆ CalculateExplosionForce() [2/2]

Vector3 ModWobblyLife.ExplodeData.CalculateExplosionForce ( Vector3  point)

Calculates the explosion force from a point.

Parameters
point
Returns

◆ CalculateForce() [1/2]

float ModWobblyLife.ExplodeData.CalculateForce ( Transform  transform)

Calculates the raw explosion force from a transform.

Parameters
transform
Returns

◆ CalculateForce() [2/2]

float ModWobblyLife.ExplodeData.CalculateForce ( Vector3  point)

Calculates the raw explosion force from a point.

Parameters
point
Returns

Member Data Documentation

◆ explodeGameObject

GameObject ModWobblyLife.ExplodeData.explodeGameObject

The game object which exploded.

◆ force

float ModWobblyLife.ExplodeData.force

The force of the explosion.

◆ position

Vector3 ModWobblyLife.ExplodeData.position

The position of the explosion.

◆ radius

float ModWobblyLife.ExplodeData.radius

The radius of the explosion.