Supplier

open class Supplier : Ramping

A Value that uses a SmoothDamp function to smooth out values over time. Uses a supplier for the current value, based on a target set by the loop.

Author

Lucas Bubner, 2024

Since

3.2.0

Constructors

Link copied to clipboard
constructor(@NonNull current: DoubleSupplier)
Create a new Ramping Supplier object, wrapping a DoubleSupplier that will be used in place of the current value when get is called.

Functions

Link copied to clipboard
open fun get(target: Double): Double
open fun get(target: Float): Float
Gets a ramped value from the value supplier and target value.
Link copied to clipboard
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
Set the time it takes for the value to reach the target.