public class PhysicsControl extends AbstractControl
| Modifier and Type | Method and Description |
|---|---|
void |
onAdded(Entity entity)
Called when this control is added to entity.
|
void |
onUpdate(Entity entity,
double tpf)
Called on entity world update tick.
|
void |
reposition(javafx.geometry.Point2D point)
Repositions an entity that supports physics directly in the physics world.
|
public void onAdded(Entity entity)
ControlonAdded in interface ControlonAdded in class AbstractControlentity - the entity to which this control was addedpublic void onUpdate(Entity entity, double tpf)
Controlentity - the entity to which this control is attachedtpf - time per framepublic void reposition(javafx.geometry.Point2D point)
point - point in game world coordinates (pixels)Copyright © 2017. All rights reserved.