![]() |
Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
|
Public Types | |
| enum | Spaces { Local , World } |
| Public Types inherited from MoreMountains.Feedbacks.MMSpringComponentBase | |
| enum | TimeScaleModes { Unscaled , Scaled } |
| the different possible timescale modes for the spring More... | |
Public Attributes | |
| Spaces | Space = Spaces.World |
| Public Attributes inherited from MoreMountains.Feedbacks.MMSpringVector3Component< T > | |
| T | Target |
| TimeScaleModes | TimeScaleMode = TimeScaleModes.Scaled |
| whether this spring should run on scaled time (and be impacted by time scale changes) or unscaled time (and not be impacted by time scale changes) | |
| MMChannelModes | ChannelMode = MMChannelModes.Int |
| int | Channel = 0 |
| the channel to listen to - has to match the one on the feedback | |
| MMChannel | MMChannelDefinition = null |
| MMSpringVector3 | SpringVector3 = new MMSpringVector3() |
| Vector3 | MoveToRandomValueMin = new Vector3(-2f, -2f, -2f) |
| the minimum vector from which to pick a random value when calling MoveToRandom() | |
| Vector3 | MoveToRandomValueMax = new Vector3(2f, 2f, 2f) |
| the maximum vector from which to pick a random value when calling MoveToRandom() | |
| Vector3 | BumpAmountRandomValueMin = new Vector3(-20f, 20f, -20f) |
| the minimum vector from which to pick a random value when calling BumpRandom() | |
| Vector3 | BumpAmountRandomValueMax = new Vector3(20f, 20f, 20f) |
| the maximum vector from which to pick a random value when calling BumpRandom() | |
| Vector3 | TestMoveToValue = new Vector3(2f, 2f, 2f) |
| the value to move this spring to when interacting with any of the MoveTo debug buttons in its inspector | |
| bool | MoveToToolbar |
| Vector3 | TestBumpAmount = new Vector3(75f, 100f, 50f) |
| the amount by which to bump this spring when interacting with the Bump debug button in its inspector | |
| bool | BumpToToolbar |
| bool | OtherControlsToToolbar |
| Public Attributes inherited from MoreMountains.Feedbacks.MMSpringComponentBase | |
| UnityEvent | OnEquilibriumReached |
Properties | |
| override Vector3 | TargetVector3 [get, set] |
| Properties inherited from MoreMountains.Feedbacks.MMSpringVector3Component< T > | |
| override bool | LowVelocity [get] |
| float | DeltaTime [get] |
| virtual Vector3 | TargetVector3 [get, set] |
| Properties inherited from MoreMountains.Feedbacks.MMSpringComponentBase | |
| virtual bool | LowVelocity [get] |
| whether or not this spring has reached a low enough velocity to self disable | |
Additional Inherited Members | |
| Public Member Functions inherited from MoreMountains.Feedbacks.MMSpringVector3Component< T > | |
| virtual void | MoveTo (Vector3 newValue) |
| virtual void | MoveToAdditive (Vector3 newValue) |
| virtual void | MoveToSubtractive (Vector3 newValue) |
| virtual void | MoveToRandom () |
| virtual void | MoveToInstant (Vector3 newValue) |
| virtual void | MoveToRandom (Vector3 min, Vector3 max) |
| virtual void | Bump (Vector3 bumpAmount) |
| virtual void | BumpRandom () |
| virtual void | BumpRandom (Vector3 min, Vector3 max) |
| override void | Stop () |
| Stops all value movement on this spring. | |
| override void | RestoreInitialValue () |
| Restores this spring's initial value. | |
| override void | ResetInitialValue () |
| Sets the current value of this spring as its new initial value, overriding the previous one. | |
| override void | Finish () |
| Moves this spring to its destination and disables it. | |
| void | OnMMEvent (MMSpringVector3Event springEvent) |
| Public Member Functions inherited from MoreMountains.Feedbacks.MMSpringComponentBase | |
| virtual void | SetVelocityLowThreshold (float threshold) |
| Sets the threshold under which the spring will consider its velocity as too low and will self disable. | |
| Public Member Functions inherited from MoreMountains.Tools.MMEventListener< T > | |
| void | OnMMEvent (T eventType) |
| Protected Member Functions inherited from MoreMountains.Feedbacks.MMSpringVector3Component< T > | |
| override void | UpdateSpringValue () |
| Updates the spring's target value. | |
| override void | Initialization () |
| Performs initialization for this spring. | |
| virtual void | ApplyValue (Vector3 newValue) |
| override void | GrabCurrentValue () |
| Grabs the current value on the spring's target. | |
| override void | Awake () |
| On awake we self disable. | |
| void | OnDestroy () |
| override void | TestMoveTo () |
| override void | TestMoveToAdditive () |
| override void | TestMoveToSubtractive () |
| override void | TestMoveToRandom () |
| override void | TestMoveToInstant () |
| override void | TestBump () |
| override void | TestBumpRandom () |
| Protected Member Functions inherited from MoreMountains.Feedbacks.MMSpringComponentBase | |
| 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. | |
| Protected Attributes inherited from MoreMountains.Feedbacks.MMSpringComponentBase | |
| float | _velocityLowThreshold = 0.001f |
| Spaces MoreMountains.Feedbacks.MMSpringRotation.Space = Spaces.World |
|
getset |