Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Properties | List of all members
FXMonger Class Reference
Inheritance diagram for FXMonger:

Public Member Functions

void offsetPositions (Vector3d offset)
 

Static Public Member Functions

static void Explode (Part source, Vector3d blastPos, double howhard)
 Request creation of an explosion effect at the specified position, with the specified size More...
 
static void ExplodeWithDebris (Vector3d blastPos, double howHard, GameObject objectToFollow)
 Instantiate the Debris explosion particles on the location. More...
 
static void OffsetPositions (Vector3d offset)
 
static void RemoveFXOjbect (FXObject obj)
 
static void ROCExplode (Vector3d blastPos, double howhard)
 Request creation of an explosion effect at the specified position, with the specified size for ROCs More...
 
static FXObject Splash (Vector3 pos, float howHard)
 

Public Attributes

AudioClip[] crashSounds
 
GameObject[] debrisExplosion
 
AudioClip[] debrisSounds
 
GameObject[] explosions
 
AudioClip[] explosionSounds
 
float minDistanceFromOtherBlasts = 10f
 Min Distance between Explosions to combine them More...
 
float minDistanceFromOtherSplashes = 1.5f
 Min Distance between splashes to combine them More...
 
double minPower = 0.001
 A minimum value for explosion power More...
 
float minSqrBlast
 Square power of min blast distance More...
 
float minSqrSplash
 Square power of min splash distance More...
 
float minTimeBetweenSplashes = 0.025f
 When a new explosion occurs how long since an explosion in a similar place More...
 
float queueRemovalTimeMultiplier = 5f
 How many multiples of the min Time before we remove them from the queued list More...
 
GameObject[] splashes
 
bool splashMonger = true
 Should the SplashMonger combine splashes that occur within the minDistance during the same frame More...
 
AudioClip[] splashSounds
 
GameObject[] thuds
 

Protected Attributes

List< FXObjectexplosionObjects = new List<FXObject>()
 

Properties

float MINIMUM_DISTANCE_FROM_OTHER_BLASTS [get]
 

Member Function Documentation

static void FXMonger.Explode ( Part  source,
Vector3d  blastPos,
double  howhard 
)
inlinestatic

Request creation of an explosion effect at the specified position, with the specified size

Parameters
sourceWhich part just exploded
blastPosThe world position where the explosion will happen
howHard0 to 1.0 value specifying the size of the blast (where 0 is weakest and 1 is pure insanity)
Returns
static void FXMonger.ExplodeWithDebris ( Vector3d  blastPos,
double  howHard,
GameObject  objectToFollow 
)
inlinestatic

Instantiate the Debris explosion particles on the location.

Parameters
blastPos
howHard
void FXMonger.offsetPositions ( Vector3d  offset)
inline
static void FXMonger.OffsetPositions ( Vector3d  offset)
inlinestatic
static void FXMonger.RemoveFXOjbect ( FXObject  obj)
inlinestatic
static void FXMonger.ROCExplode ( Vector3d  blastPos,
double  howhard 
)
inlinestatic

Request creation of an explosion effect at the specified position, with the specified size for ROCs

Parameters
blastPosThe world position where the explosion will happen
howHard0 to 1.0 value specifying the size of the blast (where 0 is weakest and 1 is pure insanity)
Returns
static FXObject FXMonger.Splash ( Vector3  pos,
float  howHard 
)
inlinestatic

Member Data Documentation

AudioClip [] FXMonger.crashSounds
GameObject [] FXMonger.debrisExplosion
AudioClip [] FXMonger.debrisSounds
List<FXObject> FXMonger.explosionObjects = new List<FXObject>()
protected
GameObject [] FXMonger.explosions
AudioClip [] FXMonger.explosionSounds
float FXMonger.minDistanceFromOtherBlasts = 10f

Min Distance between Explosions to combine them

float FXMonger.minDistanceFromOtherSplashes = 1.5f

Min Distance between splashes to combine them

double FXMonger.minPower = 0.001

A minimum value for explosion power

Should be greater than 0 and less than or equal to 1

float FXMonger.minSqrBlast

Square power of min blast distance

float FXMonger.minSqrSplash

Square power of min splash distance

float FXMonger.minTimeBetweenSplashes = 0.025f

When a new explosion occurs how long since an explosion in a similar place

float FXMonger.queueRemovalTimeMultiplier = 5f

How many multiples of the min Time before we remove them from the queued list

GameObject [] FXMonger.splashes
bool FXMonger.splashMonger = true

Should the SplashMonger combine splashes that occur within the minDistance during the same frame

AudioClip [] FXMonger.splashSounds
GameObject [] FXMonger.thuds

Property Documentation

float FXMonger.MINIMUM_DISTANCE_FROM_OTHER_BLASTS
get

The documentation for this class was generated from the following file: