24#include "animatedValue.h"
50 Spring (
float startVal,
float endVal,
float tolerance,
float accel,
float dampen);
Accelerates toward the end value – if this acceleration takes it past the end value,...
Definition: spring.h:38
float startAcceleration
The initial acceleration for this value.
Definition: spring.h:57
float velocity
current velocity, updated with acceleration every frame.
Definition: spring.h:66
float damping
damping factor to apply when we need to oscillate toward end val.
Definition: spring.h:63
float acceleration
When we're in a damping state, the acceleration will change.
Definition: spring.h:60
float generateNextValue() override
Execute a single step of this curve's function.
Definition: spring.cpp:40
Definition: animatedValue.h:121