Feel
4.3
The best way to improve your game's feel and make it extra juicy
|
An abstract class used to build spring components to pilot various properties (float, vector2, vector3, color, etc) More...
Public Types | |
enum | TimeScaleModes { TimeScaleModes.Unscaled, TimeScaleModes.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 More... | |
virtual void | Stop () |
Stops all value movement on this spring More... | |
virtual void | Finish () |
Moves this spring to its destination and disables it More... | |
virtual void | RestoreInitialValue () |
Restores this spring's initial value More... | |
virtual void | ResetInitialValue () |
Sets the current value of this spring as its new initial value, overriding the previous one More... | |
Public Attributes | |
virtual bool | LowVelocity => false |
whether or not this spring has reached a low enough velocity to self disable More... | |
UnityEvent | OnEquilibriumReached |
Protected Member Functions | |
virtual void | Awake () |
On awake we self disable More... | |
virtual void | Update () |
On update we update our spring value and self disable if needed More... | |
virtual void | Activate () |
Activates this component More... | |
virtual void | SelfDisable () |
Disables this component More... | |
virtual void | Initialization () |
Performs initialization for this spring More... | |
virtual void | GrabCurrentValue () |
Grabs the current value on the spring's target More... | |
virtual void | UpdateSpringValue () |
Updates the spring's target value More... | |
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 |
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.MMSpringVector4< 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.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.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 >, MoreMountains.Feedbacks.MMSpringVector4< 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 >, MoreMountains.Feedbacks.MMSpringVector4< 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 |
virtual bool MoreMountains.Feedbacks.MMSpringComponentBase.LowVelocity => false |
whether or not this spring has reached a low enough velocity to self disable
UnityEvent MoreMountains.Feedbacks.MMSpringComponentBase.OnEquilibriumReached |