public class SpringStopEngine extends java.lang.Object implements StopEngine
| Constructor and Description |
|---|
SpringStopEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
debug(java.lang.String desc,
float time) |
float |
getAcceleration() |
float |
getInterpolation(float time) |
float |
getVelocity() |
float |
getVelocity(float t) |
boolean |
isStopped() |
void |
springConfig(float currentPos,
float target,
float currentVelocity,
float mass,
float stiffness,
float damping,
float stopThreshold,
int boundaryMode) |
public java.lang.String debug(java.lang.String desc,
float time)
debug in interface StopEnginepublic void springConfig(float currentPos,
float target,
float currentVelocity,
float mass,
float stiffness,
float damping,
float stopThreshold,
int boundaryMode)
public float getVelocity(float t)
getVelocity in interface StopEnginepublic float getInterpolation(float time)
getInterpolation in interface StopEnginepublic float getAcceleration()
public float getVelocity()
getVelocity in interface StopEnginepublic boolean isStopped()
isStopped in interface StopEngine