![]() |
Platformer Pro
2.3.2
A platform game kit for Unity.
|
FX class which shakes something back and forth (usually a camera). More...
Public Attributes | |
GameObject | shakeTarget |
Target to shake. More... | |
Vector3 | shakeAmount = new Vector3(0.5f, 0.5f, 0) |
How far we shake at max in (x,y,z) More... | |
float | shakeRate = 0.033f |
How fast does the shake change direction. More... | |
float | decay = 0.85f |
How fast we decay 0 instantly, 1 not at all. More... | |
bool | returnToOriginalX |
Should we reset to original position in X. More... | |
bool | returnToOriginalY |
Should we reset to original position in Y. More... | |
bool | returnToOriginalZ |
Should we reset to original position in Z. More... | |
![]() | |
bool | playOnAwake |
Should we play this on awake. More... | |
Protected Member Functions | |
override void | DoEffect () |
Do the effect. More... | |
Protected Attributes | |
Vector3 | currentIntensityMax |
The current velocity. More... | |
Vector3 | originalPosition |
The original position of the object. More... | |
Vector3 | lastShakePosition |
The original position of the object. More... | |
bool | shakeStarted |
have we started shaking? More... | |
PlatformCamera | zoneCamera |
Cached reference to zone camera, used to turn snapping on and off. More... | |
float | shakeTimer |
Vector3 | shakeTargetPosition |
Vector3 | lastShakeDirection |
![]() | |
bool | playWhenEnabled |
If we have play on awake true but we are not enabled we will defer the play until we are enabled. More... | |
Additional Inherited Members | |
![]() | |
virtual void | StartEffect () |
Starts the effect. More... | |
virtual void | StartEffect (GameObject callbackObject, string function) |
Starts the effect. More... | |
FX class which shakes something back and forth (usually a camera).
|
protectedvirtual |
Do the effect.
Implements PlatformerPro.Extras.FX_Base.
|
protected |
The current velocity.
float PlatformerPro.Extras.FX_Shake.decay = 0.85f |
How fast we decay 0 instantly, 1 not at all.
|
protected |
|
protected |
The original position of the object.
|
protected |
The original position of the object.
bool PlatformerPro.Extras.FX_Shake.returnToOriginalX |
Should we reset to original position in X.
bool PlatformerPro.Extras.FX_Shake.returnToOriginalY |
Should we reset to original position in Y.
bool PlatformerPro.Extras.FX_Shake.returnToOriginalZ |
Should we reset to original position in Z.
Vector3 PlatformerPro.Extras.FX_Shake.shakeAmount = new Vector3(0.5f, 0.5f, 0) |
How far we shake at max in (x,y,z)
float PlatformerPro.Extras.FX_Shake.shakeRate = 0.033f |
How fast does the shake change direction.
|
protected |
have we started shaking?
GameObject PlatformerPro.Extras.FX_Shake.shakeTarget |
Target to shake.
|
protected |
|
protected |
|
protected |
Cached reference to zone camera, used to turn snapping on and off.