Slew

class Slew(maxPerSecond: Float, initial: Float = 0.0f)

Stops a value moving faster than maxPerSecond. Useful for anything a viewer tracks by eye.

Constructors

Link copied to clipboard
constructor(maxPerSecond: Float, initial: Float = 0.0f)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun advance(target: Float, deltaSeconds: Float): Float
Link copied to clipboard
fun reset(to: Float = 0.0f)