public final class DragForce
extends java.lang.Object
| Constructor and Description |
|---|
DragForce() |
| Modifier and Type | Method and Description |
|---|---|
float |
getAcceleration(float position,
float velocity) |
float |
getFrictionScalar() |
float |
getValue() |
float |
getVelocity() |
boolean |
isAtEquilibrium(float value,
float velocity) |
void |
setFrictionScalar(float frictionScalar) |
void |
setValueAndVelocity(float value,
float velocity) |
void |
setValueThreshold(float threshold) |
float |
updateValueAndVelocity(long deltaT)
Updates the animation state (i.e.
|
public void setFrictionScalar(float frictionScalar)
public float getFrictionScalar()
public float updateValueAndVelocity(long deltaT)
deltaT - time elapsed in millisecond since last framepublic void setValueAndVelocity(float value,
float velocity)
public float getValue()
public float getVelocity()
public float getAcceleration(float position,
float velocity)
public boolean isAtEquilibrium(float value,
float velocity)
public void setValueThreshold(float threshold)