class SpringStopEngine : StopEngine


This contains the class to provide the logic for an animation to come to a stop using a spring model.

Summary

Public constructors

Public functions

String!
debug(desc: String!, time: Float)
Float
Float
Float
Float
Boolean
Unit
springConfig(
    currentPos: Float,
    target: Float,
    currentVelocity: Float,
    mass: Float,
    stiffness: Float,
    damping: Float,
    stopThreshold: Float,
    boundaryMode: Int
)

Public constructors

SpringStopEngine

Added in 1.1.0-rc01
SpringStopEngine()

Public functions

debug

Added in 1.1.0-rc01
fun debug(desc: String!, time: Float): String!

getAcceleration

Added in 1.1.0-rc01
fun getAcceleration(): Float

getInterpolation

Added in 1.1.0-rc01
fun getInterpolation(time: Float): Float

getVelocity

Added in 1.1.0-rc01
fun getVelocity(): Float

getVelocity

Added in 1.1.0-rc01
fun getVelocity(time: Float): Float

isStopped

Added in 1.1.0-rc01
fun isStopped(): Boolean

springConfig

Added in 1.1.0-rc01
fun springConfig(
    currentPos: Float,
    target: Float,
    currentVelocity: Float,
    mass: Float,
    stiffness: Float,
    damping: Float,
    stopThreshold: Float,
    boundaryMode: Int
): Unit