public class Integrator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
accel |
float |
attraction |
float |
damping |
float |
epsilon |
float |
force |
float |
mass |
float |
prev |
float |
target |
boolean |
targeting |
float |
value |
float |
vel |
Constructor and Description |
---|
Integrator() |
Integrator(float value) |
Integrator(float value,
float damping,
float attraction) |
Modifier and Type | Method and Description |
---|---|
void |
noTarget() |
void |
set(double v) |
void |
set(float v) |
void |
target(double d) |
void |
target(float t) |
boolean |
update()
Update for next time step.
|
public float value
public float vel
public float accel
public float force
public float mass
public float damping
public float attraction
public boolean targeting
public float target
public float prev
public float epsilon