FlightKit
Awesome Flight Simulator Kit
|
Detects when the airplane has crashed and controls the corresponding effects. More...
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... | |
Detects when the airplane has crashed and controls the corresponding effects.
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.