FlightKit
Awesome Flight Simulator Kit
FlightKit.CrashController Class Reference

Detects when the airplane has crashed and controls the corresponding effects. More...

Inheritance diagram for FlightKit.CrashController:

Public Member Functions

void OnCollisionEnter (Collision collision)
 

Public Attributes

float crashImpulse = 10f
 Collision impulste which is considered enough for a crash, leads to respawning. More...
 
float soundImpulse = 5f
 Collision impulse which is too big to ignore, but not enough for crash. Used for effects. More...
 
AudioClip crash
 The sound of airplane crashing, which leads to being respawned. More...
 
AudioClip hit
 The sound of airplane hitting something, not hard enough for a crash. Doesn't lead to respawning. More...
 
GameObject trailsContainer
 The GameObject that contains airplane's trails. More...
 

Detailed Description

Detects when the airplane has crashed and controls the corresponding effects.

Member Data Documentation

AudioClip FlightKit.CrashController.crash

The sound of airplane crashing, which leads to being respawned.

float FlightKit.CrashController.crashImpulse = 10f

Collision impulste which is considered enough for a crash, leads to respawning.

AudioClip FlightKit.CrashController.hit

The sound of airplane hitting something, not hard enough for a crash. Doesn't lead to respawning.

float FlightKit.CrashController.soundImpulse = 5f

Collision impulse which is too big to ignore, but not enough for crash. Used for effects.

GameObject FlightKit.CrashController.trailsContainer

The GameObject that contains airplane's trails.


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