Examples of ParticleFactory


Examples of org.openpixi.pixi.physics.particles.ParticleFactory

  private List<ParticleFactory> defaultParticleFactories() {
    // Random seed
    long seed = (long) Math.random();
    // If asList() is used the resulting list will have a fixed size!
    List<ParticleFactory> particleFactories = Arrays.asList(
        new ParticleFactory(numOfParticles / 2, 1, 1, particleRadius,
        PositionDistribution.RANDOM, VelocityDistribution.RANDOM,
        particleMaxSpeed / 10, particleMaxSpeed / 10, particleMaxSpeed,
        false, seed, seed),
        new ParticleFactory(numOfParticles / 2, 1, -1, particleRadius,
        PositionDistribution.RANDOM, VelocityDistribution.RANDOM,
        particleMaxSpeed / 10, particleMaxSpeed / 10, particleMaxSpeed,
        false, seed, seed));

    return particleFactories;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.