TopDown Engine  v4.2
MoreMountains.Feedbacks.MMF_Wiggle Class Reference

When played, this feedback will activate the Wiggle method of a MMWiggle object based on the selected settings, wiggling either its position, rotation, scale, or all of these. More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_Wiggle:
MoreMountains.Feedbacks.MMF_Feedback

Public Attributes

override bool HasAutomatedTargetAcquisition => true
 sets the inspector color for this feedback More...
 
MMWiggle TargetWiggle
 the Wiggle component to target More...
 
bool WigglePosition = true
 whether or not to wiggle position More...
 
float WigglePositionDuration
 the duration (in seconds) of the position wiggle More...
 
bool WiggleRotation
 whether or not to wiggle rotation More...
 
float WiggleRotationDuration
 the duration (in seconds) of the rotation wiggle More...
 
bool WiggleScale
 whether or not to wiggle scale More...
 
float WiggleScaleDuration
 the duration (in seconds) of the scale wiggle More...
 

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once More...
 

Protected Member Functions

override void AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target) More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we trigger the desired wiggles More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On Stop we change the state of our object if needed More...
 
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state More...
 

Properties

override float FeedbackDuration [get, set]
 the duration of this feedback is the duration of the clip being played More...
 

Additional Inherited Members

Detailed Description

When played, this feedback will activate the Wiggle method of a MMWiggle object based on the selected settings, wiggling either its position, rotation, scale, or all of these.

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.Feedbacks.MMF_Wiggle.AutomateTargetAcquisition ( )
protectedvirtual

A method meant to be implemented per feedback letting you specify what happens (usually setting a target)

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_Wiggle.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On Play we trigger the desired wiggles

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

override void MoreMountains.Feedbacks.MMF_Wiggle.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we restore our initial state

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_Wiggle.CustomStopFeedback ( Vector3  position,
float  feedbacksIntensity = 1 
)
protectedvirtual

On Stop we change the state of our object if needed

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Wiggle.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.Feedbacks.MMF_Wiggle.HasAutomatedTargetAcquisition => true

sets the inspector color for this feedback

◆ TargetWiggle

MMWiggle MoreMountains.Feedbacks.MMF_Wiggle.TargetWiggle

the Wiggle component to target

◆ WigglePosition

bool MoreMountains.Feedbacks.MMF_Wiggle.WigglePosition = true

whether or not to wiggle position

◆ WigglePositionDuration

float MoreMountains.Feedbacks.MMF_Wiggle.WigglePositionDuration

the duration (in seconds) of the position wiggle

◆ WiggleRotation

bool MoreMountains.Feedbacks.MMF_Wiggle.WiggleRotation

whether or not to wiggle rotation

◆ WiggleRotationDuration

float MoreMountains.Feedbacks.MMF_Wiggle.WiggleRotationDuration

the duration (in seconds) of the rotation wiggle

◆ WiggleScale

bool MoreMountains.Feedbacks.MMF_Wiggle.WiggleScale

whether or not to wiggle scale

◆ WiggleScaleDuration

float MoreMountains.Feedbacks.MMF_Wiggle.WiggleScaleDuration

the duration (in seconds) of the scale wiggle

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_Wiggle.FeedbackDuration
getset

the duration of this feedback is the duration of the clip being played


The documentation for this class was generated from the following file: