Search in sources :

Example 1 with PhysicsParticleControl

use of com.almasb.fxgl.physics.PhysicsParticleControl in project FXGL by AlmasB.

the class GameScene method onAdded.

@Override
public void onAdded(Control control) {
    if (control instanceof PhysicsParticleControl) {
        PhysicsParticleControl particleControl = (PhysicsParticleControl) control;
        particles.add(particleControl);
    }
}
Also used : PhysicsParticleControl(com.almasb.fxgl.physics.PhysicsParticleControl)

Aggregations

PhysicsParticleControl (com.almasb.fxgl.physics.PhysicsParticleControl)1