|
TopDown Engine v4.5
|
A variant of the Camera Shaker that acts on the rotation instead of the position. Careful, can cause vertigo to some users. More...
Public Member Functions | |
| override 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. | |
| Public Member Functions inherited from MoreMountains.Feedbacks.MMCameraShaker | |
| virtual void | OnCameraShakeEvent (float duration, float amplitude, float frequency, float amplitudeX, float amplitudeY, float amplitudeZ, bool infinite, MMChannelData channelData, bool useUnscaledTime) |
| When a MMCameraShakeEvent is caught, shakes the camera. | |
Additional Inherited Members | |
| Public Attributes inherited from MoreMountains.Feedbacks.MMCameraShaker | |
| MMChannelModes | ChannelMode = MMChannelModes.Int |
| int | Channel = 0 |
| the channel to listen to - has to match the one on the feedback | |
| MMChannel | MMChannelDefinition = null |
| float | CooldownBetweenShakes = 0f |
| a cooldown, in seconds, after a shake, during which no other shake can start | |
| Protected Member Functions inherited from MoreMountains.Feedbacks.MMCameraShaker | |
| virtual void | Awake () |
| On Awake, grabs the MMShaker component. | |
| virtual void | OnEnable () |
| On enable, starts listening for events. | |
| virtual void | OnDisable () |
| On disable, stops listening to events. | |
| Protected Attributes inherited from MoreMountains.Feedbacks.MMCameraShaker | |
| MMWiggle | _wiggle |
| float | _shakeStartedTimestamp = -Single.MaxValue |
A variant of the Camera Shaker that acts on the rotation instead of the position. Careful, can cause vertigo to some users.
|
virtual |
Shakes the camera for Duration seconds, by the desired amplitude and frequency.
| duration | Duration. |
| amplitude | Amplitude. |
| frequency | Frequency. |
Reimplemented from MoreMountains.Feedbacks.MMCameraShaker.