|
| enum | TimeScaleModes { Unscaled
, Scaled
} |
| | the different possible timescale modes for the spring More...
|
| virtual void | MoveTo (Vector2 newValue) |
| virtual void | MoveToAdditive (Vector2 newValue) |
| virtual void | MoveToSubtractive (Vector2 newValue) |
| virtual void | MoveToRandom () |
| virtual void | MoveToInstant (Vector2 newValue) |
| virtual void | MoveToRandom (Vector2 min, Vector2 max) |
| virtual void | Bump (Vector2 bumpAmount) |
| virtual void | BumpRandom () |
| virtual void | BumpRandom (Vector2 min, Vector2 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 (MMSpringVector2Event springEvent) |
| virtual void | SetVelocityLowThreshold (float threshold) |
| | Sets the threshold under which the spring will consider its velocity as too low and will self disable.
|
| void | OnMMEvent (T eventType) |
| 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 |
| MMSpringVector2 | SpringVector2 = new MMSpringVector2() |
| Vector2 | MoveToRandomValueMin = new Vector2(-2f, -2f) |
| | the minimum vector from which to pick a random value when calling MoveToRandom()
|
| Vector2 | MoveToRandomValueMax = new Vector2(2f, 2f) |
| | the maximum vector from which to pick a random value when calling MoveToRandom()
|
| Vector2 | BumpAmountRandomValueMin = new Vector2(-20f, -20f) |
| | the minimum vector from which to pick a random value when calling BumpRandom()
|
| Vector2 | BumpAmountRandomValueMax = new Vector2(20f, 20f) |
| | the maximum vector from which to pick a random value when calling BumpRandom()
|
| Vector2 | TestMoveToValue = new Vector2(2f, 2f) |
| | the value to move this spring to when interacting with any of the MoveTo debug buttons in its inspector
|
| bool | MoveToToolbar |
| Vector2 | TestBumpAmount = new Vector2(75f, 100f) |
| | the amount by which to bump this spring when interacting with the Bump debug button in its inspector
|
| bool | BumpToToolbar |
| bool | OtherControlsToToolbar |
| UnityEvent | OnEquilibriumReached |
| override void | UpdateSpringValue () |
| | Updates the spring's target value.
|
| override void | Initialization () |
| | Performs initialization for this spring.
|
| virtual void | ApplyValue (Vector2 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 () |
| 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.
|
| float | _velocityLowThreshold = 0.001f |