| Modifier and Type | Field and Description |
|---|---|
private double |
friction_coefficient
The friction_coefficient.
|
private Vector |
frictionAcceleration
The friction acceleration.
|
private double |
gravity
The gravity.
|
parameters, type, world| Constructor and Description |
|---|
MovementLaw() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(LawState prevState,
double instant,
LawState newState)
Change state.
|
boolean |
configure()
User-implemented method that configures the component, setting up user parameters and essential properties.
|
boolean |
finit()
User-implemented finalization method, called by stop().
|
boolean |
init()
User-implemented initialization method, called by start().
|
void |
warmup()
Warmup.
|
getParameters, getType, getWorld, parameterUpdate, setParameters, setType, setWorld, start, stopprivate double gravity
private double friction_coefficient
private Vector frictionAcceleration
public boolean configure()
LifeCyclepublic boolean init()
LifeCyclepublic boolean finit()
LifeCyclepublic void warmup()
public void changeState(LawState prevState, double instant, LawState newState)
LawchangeState in class LawprevState - the old stateinstant - the instantnewState - the new state