public class LiftControl extends Control
| Constructor and Description |
|---|
LiftControl(javafx.util.Duration duration,
double distance,
boolean goingUp)
Constructs lift control (moving vertically).
|
| Modifier and Type | Method and Description |
|---|---|
void |
onAdded(Entity entity) |
void |
onUpdate(Entity entity,
double tpf) |
public LiftControl(javafx.util.Duration duration,
double distance,
boolean goingUp)
duration - duration going (one way)distance - the distance entity travels (one way)goingUp - if true, entity starts going up, otherwise downCopyright © 2017. All rights reserved.