Feel  3.16
The best way to improve your game's feel and make it extra juicy
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 More...
 
- 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 More...
 

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 More...
 
MMChannel MMChannelDefinition = null
 
float CooldownBetweenShakes = 0f
 a cooldown, in seconds, after a shake, during which no other shake can start More...
 
- Protected Member Functions inherited from MoreMountains.Feedbacks.MMCameraShaker
virtual void Awake ()
 On Awake, grabs the MMShaker component More...
 
virtual void OnEnable ()
 On enable, starts listening for events More...
 
virtual void OnDisable ()
 On disable, stops listening to events More...
 
- 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: