StopLogicEngine
public class StopLogicEngine implements StopEngine
This contains the class to provide the logic for an animation to come to a stop. The setup defines a series of velocity gradients that gets to the desired position ending at 0 velocity. The path is computed such that the velocities are continuous
Summary
Nested types |
|---|
public class StopLogicEngine.Decelerate implements StopEngine |
Public constructors |
|---|
Public methods |
|
|---|---|
void |
config( |
String |
Debugging logic to log the state. |
float |
getInterpolation(float v) |
float |
|
float |
getVelocity(float x) |
boolean |
Public constructors
Public methods
config
Added in 1.1.1
public void config(
float currentPos,
float destination,
float currentVelocity,
float maxTime,
float maxAcceleration,
float maxVelocity
)