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

A feedback used to pilot Vector2 springs. More...

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

Public Attributes

MMSpringComponentBase TargetSpring
 the Vector2 spring we want to pilot using this feedback. If you set one, only that spring will be targeted. If you don't, an event will be sent out to all springs matching the channel data info
float DeclaredDuration = 0f
 the duration for the player to consider. This won't impact your particle system, but is a way to communicate to the MMF Player the duration of this feedback. Usually you'll want it to match your actual particle system, and setting it can be useful to have this feedback work with holding pauses.
SpringCommands Command = SpringCommands.Bump
 the command to use on that spring
Vector2 MoveToValue = new Vector2(2f, 2f)
 the new value this spring should move towards
Vector2 BumpAmount = new Vector2(75f, 75f)
 the amount to add to the spring's current velocity to disturb it and make it bump
Vector2 MoveToRandomValueMin = new Vector2(-2f, -2f)
 the min values between which a random target x value will be picked when calling MoveToRandom
Vector2 MoveToRandomValueMax = new Vector2(2f, 2f)
 the min (x) and max (y) values between which a random target y value will be picked when calling MoveToRandom
Vector2 BumpAmountRandomValueMin = new Vector2(-20f, -20f)
 the min (x) and max (y) values between which a random bump x value will be picked when calling BumpRandom
Vector2 BumpAmountRandomValueMax = new Vector2(20f, 20f)
 the min (x) and max (y) values between which a random bump y value will be picked when calling BumpRandom
bool OverrideDamping = false
 whether or not to override the current Damping value of the target spring(s) with the one specified below (NewDamping)
Vector2 NewDamping = new Vector2(0.8f, 0.8f)
 the new damping value to apply to the target spring(s) if OverrideDamping is true
bool OverrideFrequency = false
 whether or not to override the current Frequency value of the target spring(s) with the one specified below (NewFrequency)
Vector2 NewFrequency = new Vector2(5f, 5f)
 the new frequency value to apply to the target spring(s) if OverrideFrequency is true

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 CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play, triggers a spring event with the selected settings.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop, triggers a spring stop event.
override void CustomRestoreInitialValues ()
 On restore, triggers a spring RestoreInitialValue event.

Protected Attributes

MMChannelData _eventChannelData

Properties

override float FeedbackDuration [get, set]
 sets the inspector color for this feedback
override bool HasChannel [get]
override bool CanForceInitialValue [get]

Additional Inherited Members

Detailed Description

A feedback used to pilot Vector2 springs.

Member Function Documentation

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_SpringVector2.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

On Play, triggers a spring event with the selected settings.

Parameters
position
feedbacksIntensity

◆ CustomRestoreInitialValues()

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

On restore, triggers a spring RestoreInitialValue event.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

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

On stop, triggers a spring stop event.

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _eventChannelData

MMChannelData MoreMountains.Feedbacks.MMF_SpringVector2._eventChannelData
protected

◆ BumpAmount

Vector2 MoreMountains.Feedbacks.MMF_SpringVector2.BumpAmount = new Vector2(75f, 75f)

the amount to add to the spring's current velocity to disturb it and make it bump

◆ BumpAmountRandomValueMax

Vector2 MoreMountains.Feedbacks.MMF_SpringVector2.BumpAmountRandomValueMax = new Vector2(20f, 20f)

the min (x) and max (y) values between which a random bump y value will be picked when calling BumpRandom

◆ BumpAmountRandomValueMin

Vector2 MoreMountains.Feedbacks.MMF_SpringVector2.BumpAmountRandomValueMin = new Vector2(-20f, -20f)

the min (x) and max (y) values between which a random bump x value will be picked when calling BumpRandom

◆ Command

SpringCommands MoreMountains.Feedbacks.MMF_SpringVector2.Command = SpringCommands.Bump

the command to use on that spring

◆ DeclaredDuration

float MoreMountains.Feedbacks.MMF_SpringVector2.DeclaredDuration = 0f

the duration for the player to consider. This won't impact your particle system, but is a way to communicate to the MMF Player the duration of this feedback. Usually you'll want it to match your actual particle system, and setting it can be useful to have this feedback work with holding pauses.

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_SpringVector2.FeedbackTypeAuthorized = true
static

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

◆ MoveToRandomValueMax

Vector2 MoreMountains.Feedbacks.MMF_SpringVector2.MoveToRandomValueMax = new Vector2(2f, 2f)

the min (x) and max (y) values between which a random target y value will be picked when calling MoveToRandom

◆ MoveToRandomValueMin

Vector2 MoreMountains.Feedbacks.MMF_SpringVector2.MoveToRandomValueMin = new Vector2(-2f, -2f)

the min values between which a random target x value will be picked when calling MoveToRandom

◆ MoveToValue

Vector2 MoreMountains.Feedbacks.MMF_SpringVector2.MoveToValue = new Vector2(2f, 2f)

the new value this spring should move towards

◆ NewDamping

Vector2 MoreMountains.Feedbacks.MMF_SpringVector2.NewDamping = new Vector2(0.8f, 0.8f)

the new damping value to apply to the target spring(s) if OverrideDamping is true

◆ NewFrequency

Vector2 MoreMountains.Feedbacks.MMF_SpringVector2.NewFrequency = new Vector2(5f, 5f)

the new frequency value to apply to the target spring(s) if OverrideFrequency is true

◆ OverrideDamping

bool MoreMountains.Feedbacks.MMF_SpringVector2.OverrideDamping = false

whether or not to override the current Damping value of the target spring(s) with the one specified below (NewDamping)

◆ OverrideFrequency

bool MoreMountains.Feedbacks.MMF_SpringVector2.OverrideFrequency = false

whether or not to override the current Frequency value of the target spring(s) with the one specified below (NewFrequency)

◆ TargetSpring

MMSpringComponentBase MoreMountains.Feedbacks.MMF_SpringVector2.TargetSpring

the Vector2 spring we want to pilot using this feedback. If you set one, only that spring will be targeted. If you don't, an event will be sent out to all springs matching the channel data info

Property Documentation

◆ CanForceInitialValue

override bool MoreMountains.Feedbacks.MMF_SpringVector2.CanForceInitialValue
get

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_SpringVector2.FeedbackDuration
getset

sets the inspector color for this feedback

the duration of this feedback is the duration of the zoom

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_SpringVector2.HasChannel
get

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