public class ParticleControl extends AbstractControl
| Modifier | Constructor and Description |
|---|---|
protected |
ParticleControl() |
|
ParticleControl(ParticleEmitter emitter)
Constructs particle control with specified emitter.
|
| Modifier and Type | Method and Description |
|---|---|
ParticleEmitter |
getEmitter() |
void |
onRemoved(Entity entity)
Called when this control is removed from entity.
|
void |
onUpdate(Entity entity,
double tpf)
Called on entity world update tick.
|
void |
renderParticles(javafx.scene.canvas.GraphicsContext g,
javafx.geometry.Point2D viewportOrigin)
Do NOT call manually.
|
public ParticleControl(ParticleEmitter emitter)
emitter - particle emitterprotected ParticleControl()
public void onUpdate(Entity entity, double tpf)
Controlentity - the entity to which this control is attachedtpf - time per framepublic void onRemoved(Entity entity)
ControlonRemoved in interface ControlonRemoved in class AbstractControlentity - the entity from which the control was removedpublic void renderParticles(javafx.scene.canvas.GraphicsContext g,
javafx.geometry.Point2D viewportOrigin)
g - graphics contextviewportOrigin - viewport originpublic ParticleEmitter getEmitter()
Copyright © 2017. All rights reserved.