Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
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

MMWiggle TargetWiggle
 the Wiggle component to target
bool WigglePosition = true
 whether or not to wiggle position
float WigglePositionDuration
 the duration (in seconds) of the position wiggle
bool WiggleRotation
 whether or not to wiggle rotation
float WiggleRotationDuration
 the duration (in seconds) of the rotation wiggle
bool WiggleScale
 whether or not to wiggle scale
float WiggleScaleDuration
 the duration (in seconds) of the scale wiggle

Static Public Attributes

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

Protected Member Functions

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

Properties

override bool HasAutomatedTargetAcquisition [get]
 sets the inspector color for this feedback
override float FeedbackDuration [get, set]
 the duration of this feedback is the duration of the clip being played

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 )
protected

On Play we trigger the desired wiggles.

Parameters
position
feedbacksIntensity

◆ 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

◆ 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

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.Feedbacks.MMF_Wiggle.HasAutomatedTargetAcquisition
get

sets the inspector color for this feedback


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/MMFeedbacks/MMFeedbacks/Feedbacks/MMF_Wiggle.cs