Package com.ardor3d.extension.effect.particle

Examples of com.ardor3d.extension.effect.particle.SwarmInfluence


        particles.setStartColor(new ColorRGBA(1, 0, 0, 1));
        particles.setEndColor(new ColorRGBA(0, 1, 0, 1));
        particles.setMaximumAngle(360f * MathUtils.DEG_TO_RAD);
        particles.getParticleController().setControlFlow(false);
        particles.getParticleController().setSpeed(0.75);
        swarm = new SwarmInfluence(new Vector3(particles.getWorldTranslation()), .001);
        swarm.setMaxSpeed(.2);
        swarm.setSpeedBump(0.025);
        swarm.setTurnSpeed(MathUtils.DEG_TO_RAD * 360);
        particles.addInfluence(swarm);

View Full Code Here

TOP

Related Classes of com.ardor3d.extension.effect.particle.SwarmInfluence

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.