dampen

Smoothly dampens from a position to a target

  1. V dampen(V pos, V target, double delta, double speed)
  2. float dampen(float pos, float target, double delta, double speed)
    float
    dampen
    (
    float pos
    ,
    float target
    ,
    double delta
    ,
    double speed = 1
    )

Meta