Package barsuift.simLife.j3d.universe.physic

Examples of barsuift.simLife.j3d.universe.physic.Gravity3DState


        Physics3DState physics3D = DisplayDataCreatorForTests.createSpecificPhysics3DState();
        return new PhysicsState(gravity, physics3D);
    }

    public static GravityState createRandomGravityState() {
        Gravity3DState gravity3D = DisplayDataCreatorForTests.createRandomGravity3DState();
        int nbFallingLeaves = Randomizer.randomBetween(0, 40);
        Set<TreeLeafState> fallingLeaves = new HashSet<TreeLeafState>(nbFallingLeaves);
        for (int i = 0; i < nbFallingLeaves; i++) {
            fallingLeaves.add(createRandomTreeLeafState());
        }
View Full Code Here


        }
        return new GravityState(gravity3D, fallingLeaves);
    }

    public static GravityState createSpecificGravityState() {
        Gravity3DState gravity3D = DisplayDataCreatorForTests.createSpecificGravity3DState();
        int nbFallingLeaves = 20;
        Set<TreeLeafState> fallingLeaves = new HashSet<TreeLeafState>(nbFallingLeaves);
        for (int i = 0; i < nbFallingLeaves; i++) {
            fallingLeaves.add(createSpecificTreeLeafState());
        }
View Full Code Here

        return new Physics3DState();
    }

    public static Gravity3DState createRandomGravity3DState() {
        SplitConditionalTaskState gravityTask = UtilDataCreatorForTests.createRandomSplitConditionalTaskState();
        return new Gravity3DState(gravityTask);
    }
View Full Code Here

        return new Gravity3DState(gravityTask);
    }

    public static Gravity3DState createSpecificGravity3DState() {
        SplitConditionalTaskState gravityTask = UtilDataCreatorForTests.createSpecificSplitConditionalTaskState();
        return new Gravity3DState(gravityTask);
    }
View Full Code Here

public class GravityStateFactory {

    public GravityState createGravityState() {
        Gravity3DStateFactory gravity3DFactory = new Gravity3DStateFactory();
        Gravity3DState gravity3D = gravity3DFactory.createGravity3DState();
        Set<TreeLeafState> fallingLeaves = new HashSet<TreeLeafState>();
        return new GravityState(gravity3D, fallingLeaves);
    }
View Full Code Here

    private Set<TreeLeafState> fallingLeaves;

    public GravityState() {
        super();
        gravity3D = new Gravity3DState();
        this.fallingLeaves = new HashSet<TreeLeafState>();
    }
View Full Code Here

TOP

Related Classes of barsuift.simLife.j3d.universe.physic.Gravity3DState

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.