TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMSpringComponentBase Class Referenceabstract

An abstract class used to build spring components to pilot various properties (float, vector2, vector3, color, etc) More...

Inheritance diagram for MoreMountains.Feedbacks.MMSpringComponentBase:
MoreMountains.Tools.MMMonoBehaviour MoreMountains.Feedbacks.MMSpringColorComponent< T > MoreMountains.Feedbacks.MMSpringFloatComponent< T > MoreMountains.Feedbacks.MMSpringVector2Component< T > MoreMountains.Feedbacks.MMSpringVector3Component< T > MoreMountains.Feedbacks.MMSpringVector4< T > MoreMountains.Feedbacks.MMSpringLightColor MoreMountains.Feedbacks.MMSpringSpriteColor MoreMountains.Feedbacks.MMSpringAnimatorSpeed MoreMountains.Feedbacks.MMSpringAudioSourcePitch MoreMountains.Feedbacks.MMSpringAudioSourceVolume MoreMountains.Feedbacks.MMSpringCameraFieldOfView MoreMountains.Feedbacks.MMSpringCameraOrthographicSize MoreMountains.Feedbacks.MMSpringLightIntensity MoreMountains.Feedbacks.MMSpringLightRange MoreMountains.Feedbacks.MMSpringMMTimeScale MoreMountains.Feedbacks.MMSpringRotationAround MoreMountains.Feedbacks.MMSpringSquashAndStretch MoreMountains.Feedbacks.MMSpringRectTransformSizeDelta MoreMountains.Feedbacks.MMSpringTextureOffset MoreMountains.Feedbacks.MMSpringTextureScale MoreMountains.Feedbacks.MMSpringPosition MoreMountains.Feedbacks.MMSpringRectTransformPosition MoreMountains.Feedbacks.MMSpringRotation MoreMountains.Feedbacks.MMSpringScale

Public Types

enum  TimeScaleModes { Unscaled , Scaled }
 the different possible timescale modes for the spring More...

Public Member Functions

virtual void SetVelocityLowThreshold (float threshold)
 Sets the threshold under which the spring will consider its velocity as too low and will self disable.
virtual void Stop ()
 Stops all value movement on this spring.
virtual void Finish ()
 Moves this spring to its destination and disables it.
virtual void RestoreInitialValue ()
 Restores this spring's initial value.
virtual void ResetInitialValue ()
 Sets the current value of this spring as its new initial value, overriding the previous one.

Public Attributes

UnityEvent OnEquilibriumReached

Protected Member Functions

virtual void Awake ()
 On awake we self disable.
virtual void Update ()
 On update we update our spring value and self disable if needed.
virtual void Activate ()
 Activates this component.
virtual void SelfDisable ()
 Disables this component.
virtual void Initialization ()
 Performs initialization for this spring.
virtual void GrabCurrentValue ()
 Grabs the current value on the spring's target.
virtual void UpdateSpringValue ()
 Updates the spring's target value.
virtual void TestMoveTo ()
virtual void TestMoveToAdditive ()
virtual void TestMoveToSubtractive ()
virtual void TestMoveToRandom ()
virtual void TestMoveToInstant ()
virtual void TestBump ()
virtual void TestBumpRandom ()

Protected Attributes

float _velocityLowThreshold = 0.001f

Properties

virtual bool LowVelocity [get]
 whether or not this spring has reached a low enough velocity to self disable

Detailed Description

An abstract class used to build spring components to pilot various properties (float, vector2, vector3, color, etc)

Member Enumeration Documentation

◆ TimeScaleModes

the different possible timescale modes for the spring

Enumerator
Unscaled 
Scaled 

Member Function Documentation

◆ Activate()

virtual void MoreMountains.Feedbacks.MMSpringComponentBase.Activate ( )
protectedvirtual

Activates this component.

◆ Awake()

◆ Finish()

◆ GrabCurrentValue()

◆ Initialization()

◆ ResetInitialValue()

virtual void MoreMountains.Feedbacks.MMSpringComponentBase.ResetInitialValue ( )
virtual

◆ RestoreInitialValue()

◆ SelfDisable()

virtual void MoreMountains.Feedbacks.MMSpringComponentBase.SelfDisable ( )
protectedvirtual

Disables this component.

◆ SetVelocityLowThreshold()

virtual void MoreMountains.Feedbacks.MMSpringComponentBase.SetVelocityLowThreshold ( float threshold)
virtual

Sets the threshold under which the spring will consider its velocity as too low and will self disable.

Parameters
threshold

◆ Stop()

◆ TestBump()

◆ TestBumpRandom()

◆ TestMoveTo()

◆ TestMoveToAdditive()

◆ TestMoveToInstant()

◆ TestMoveToRandom()

◆ TestMoveToSubtractive()

◆ Update()

virtual void MoreMountains.Feedbacks.MMSpringComponentBase.Update ( )
protectedvirtual

On update we update our spring value and self disable if needed.

◆ UpdateSpringValue()

Member Data Documentation

◆ _velocityLowThreshold

float MoreMountains.Feedbacks.MMSpringComponentBase._velocityLowThreshold = 0.001f
protected

◆ OnEquilibriumReached

UnityEvent MoreMountains.Feedbacks.MMSpringComponentBase.OnEquilibriumReached

Property Documentation

◆ LowVelocity

virtual bool MoreMountains.Feedbacks.MMSpringComponentBase.LowVelocity
get

whether or not this spring has reached a low enough velocity to self disable


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