Package org.terasology.logic.particles.BlockParticleEffectComponent

Examples of org.terasology.logic.particles.BlockParticleEffectComponent.Particle


    }


    private void spawnParticle(BlockParticleEffectComponent particleEffect) {

        Particle p = new Particle();
        p.lifeRemaining = random.nextFloat() * (particleEffect.maxLifespan - particleEffect.minLifespan) + particleEffect.minLifespan;
        p.velocity = random.nextVector3f();
        p.size = random.nextFloat() * (particleEffect.maxSize - particleEffect.minSize) + particleEffect.minSize;
        p.position.set(
                random.nextFloat(-particleEffect.spawnRange.x, particleEffect.spawnRange.x),
View Full Code Here

TOP

Related Classes of org.terasology.logic.particles.BlockParticleEffectComponent.Particle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.