Package org.openpixi.pixi.physics.particles

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

Related Classes of org.openpixi.pixi.physics.particles.ParticleFactory

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.