|
TopDown Engine v4.5
|
An abstract class used to build spring components to pilot various properties (float, vector2, vector3, color, etc) More...
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 | |
An abstract class used to build spring components to pilot various properties (float, vector2, vector3, color, etc)
|
protectedvirtual |
Activates this component.
|
protectedvirtual |
On awake we self disable.
Reimplemented in MoreMountains.Feedbacks.MMSpringColorComponent< T >, MoreMountains.Feedbacks.MMSpringFloatComponent< T >, MoreMountains.Feedbacks.MMSpringVector2Component< T >, MoreMountains.Feedbacks.MMSpringVector3Component< T >, and MoreMountains.Feedbacks.MMSpringVector4< T >.
|
virtual |
Moves this spring to its destination and disables it.
Reimplemented in MoreMountains.Feedbacks.MMSpringColorComponent< T >, MoreMountains.Feedbacks.MMSpringFloatComponent< T >, MoreMountains.Feedbacks.MMSpringVector2Component< T >, MoreMountains.Feedbacks.MMSpringVector3Component< T >, and MoreMountains.Feedbacks.MMSpringVector4< T >.
|
protectedvirtual |
Grabs the current value on the spring's target.
Reimplemented in MoreMountains.Feedbacks.MMSpringColorComponent< T >, MoreMountains.Feedbacks.MMSpringFloatComponent< T >, MoreMountains.Feedbacks.MMSpringSquashAndStretch, MoreMountains.Feedbacks.MMSpringVector2Component< T >, MoreMountains.Feedbacks.MMSpringVector3Component< T >, and MoreMountains.Feedbacks.MMSpringVector4< T >.
|
protectedvirtual |
Performs initialization for this spring.
Reimplemented in MoreMountains.Feedbacks.MMSpringColorComponent< T >, MoreMountains.Feedbacks.MMSpringFloatComponent< T >, MoreMountains.Feedbacks.MMSpringMMTimeScale, MoreMountains.Feedbacks.MMSpringRotationAround, MoreMountains.Feedbacks.MMSpringScale, MoreMountains.Feedbacks.MMSpringSquashAndStretch, MoreMountains.Feedbacks.MMSpringVector2Component< T >, MoreMountains.Feedbacks.MMSpringVector3Component< T >, and MoreMountains.Feedbacks.MMSpringVector4< T >.
|
virtual |
Sets the current value of this spring as its new initial value, overriding the previous one.
Reimplemented in MoreMountains.Feedbacks.MMSpringColorComponent< T >, MoreMountains.Feedbacks.MMSpringFloatComponent< T >, MoreMountains.Feedbacks.MMSpringVector2Component< T >, MoreMountains.Feedbacks.MMSpringVector3Component< T >, and MoreMountains.Feedbacks.MMSpringVector4< T >.
|
virtual |
Restores this spring's initial value.
Reimplemented in MoreMountains.Feedbacks.MMSpringColorComponent< T >, MoreMountains.Feedbacks.MMSpringFloatComponent< T >, MoreMountains.Feedbacks.MMSpringVector2Component< T >, MoreMountains.Feedbacks.MMSpringVector3Component< T >, and MoreMountains.Feedbacks.MMSpringVector4< T >.
|
protectedvirtual |
Disables this component.
|
virtual |
Sets the threshold under which the spring will consider its velocity as too low and will self disable.
| threshold |
|
virtual |
Stops all value movement on this spring.
Reimplemented in MoreMountains.Feedbacks.MMSpringColorComponent< T >, MoreMountains.Feedbacks.MMSpringFloatComponent< T >, MoreMountains.Feedbacks.MMSpringVector2Component< T >, MoreMountains.Feedbacks.MMSpringVector3Component< T >, and MoreMountains.Feedbacks.MMSpringVector4< T >.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
On update we update our spring value and self disable if needed.
|
protectedvirtual |
Updates the spring's target value.
Reimplemented in MoreMountains.Feedbacks.MMSpringColorComponent< T >, MoreMountains.Feedbacks.MMSpringFloatComponent< T >, MoreMountains.Feedbacks.MMSpringVector2Component< T >, MoreMountains.Feedbacks.MMSpringVector3Component< T >, and MoreMountains.Feedbacks.MMSpringVector4< T >.
|
protected |
| UnityEvent MoreMountains.Feedbacks.MMSpringComponentBase.OnEquilibriumReached |
|
get |
whether or not this spring has reached a low enough velocity to self disable