A class to add to your camera. It'll listen to MMCameraShakeEvents and will shake your camera accordingly
More...
|
virtual void | ShakeCamera (float duration, float amplitude, float frequency, float amplitudeX, float amplitudeY, float amplitudeZ, bool useUnscaledTime) |
| Shakes the camera for Duration seconds, by the desired amplitude and frequency More...
|
|
virtual void | OnCameraShakeEvent (float duration, float amplitude, float frequency, float amplitudeX, float amplitudeY, float amplitudeZ, bool infinite, int channel, bool useUnscaledTime) |
| When a MMCameraShakeEvent is caught, shakes the camera More...
|
|
A class to add to your camera. It'll listen to MMCameraShakeEvents and will shake your camera accordingly
◆ Awake()
virtual void MoreMountains.Feedbacks.MMCameraShaker.Awake |
( |
| ) |
|
|
protectedvirtual |
◆ OnCameraShakeEvent()
virtual void MoreMountains.Feedbacks.MMCameraShaker.OnCameraShakeEvent |
( |
float |
duration, |
|
|
float |
amplitude, |
|
|
float |
frequency, |
|
|
float |
amplitudeX, |
|
|
float |
amplitudeY, |
|
|
float |
amplitudeZ, |
|
|
bool |
infinite, |
|
|
int |
channel, |
|
|
bool |
useUnscaledTime |
|
) |
| |
|
virtual |
◆ OnDisable()
virtual void MoreMountains.Feedbacks.MMCameraShaker.OnDisable |
( |
| ) |
|
|
protectedvirtual |
On disable, stops listening to events
◆ OnEnable()
virtual void MoreMountains.Feedbacks.MMCameraShaker.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On enable, starts listening for events
◆ ShakeCamera()
virtual void MoreMountains.Feedbacks.MMCameraShaker.ShakeCamera |
( |
float |
duration, |
|
|
float |
amplitude, |
|
|
float |
frequency, |
|
|
float |
amplitudeX, |
|
|
float |
amplitudeY, |
|
|
float |
amplitudeZ, |
|
|
bool |
useUnscaledTime |
|
) |
| |
|
virtual |
◆ _shakeStartedTimestamp
float MoreMountains.Feedbacks.MMCameraShaker._shakeStartedTimestamp = -Single.MaxValue |
|
protected |
◆ _wiggle
MMWiggle MoreMountains.Feedbacks.MMCameraShaker._wiggle |
|
protected |
◆ Channel
int MoreMountains.Feedbacks.MMCameraShaker.Channel = 0 |
the channel to broadcast this shake on
◆ CooldownBetweenShakes
float MoreMountains.Feedbacks.MMCameraShaker.CooldownBetweenShakes = 0f |
a cooldown, in seconds, after a shake, during which no other shake can start
The documentation for this class was generated from the following file:
- Assets/InfiniteRunnerEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacks/Shakers/MMCameraShaker.cs