TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMCameraShakerRotation Class Reference

A variant of the Camera Shaker that acts on the rotation instead of the position. Careful, can cause vertigo to some users. More...

Inheritance diagram for MoreMountains.Feedbacks.MMCameraShakerRotation:
MoreMountains.Feedbacks.MMCameraShaker

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

Detailed Description

A variant of the Camera Shaker that acts on the rotation instead of the position. Careful, can cause vertigo to some users.

Member Function Documentation

◆ ShakeCamera()

override void MoreMountains.Feedbacks.MMCameraShakerRotation.ShakeCamera ( float duration,
float amplitude,
float frequency,
float amplitudeX,
float amplitudeY,
float amplitudeZ,
bool useUnscaledTime )
virtual

Shakes the camera for Duration seconds, by the desired amplitude and frequency.

Parameters
durationDuration.
amplitudeAmplitude.
frequencyFrequency.

Reimplemented from MoreMountains.Feedbacks.MMCameraShaker.


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacks/Shakers/MMCameraShakerRotation.cs