Value

open class Value : Ramping

SmoothDamp implementation for a double value.

Author

Lucas Bubner, 2024

Since

3.2.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun get(current: Double, target: Double): Double
open fun get(current: Float, target: Float): Float
Gets a SmoothDamped result from the value supplier.
Link copied to clipboard
Set the maximum change in units per second.
Link copied to clipboard
Set whether the ramping function is enabled.
Link copied to clipboard
Set the ramping parameters of the value.
Link copied to clipboard
open fun setRampingTime(smoothTime: Measure<Time>): Ramping.Value
Set the time it takes for the value to reach the target.