Package barsuift.simLife.universe.physic

Examples of barsuift.simLife.universe.physic.GravityState


        return new UniverseContextState(universeState, synchroState, canvasState, axisShowing, fpsShowing,
                viewerTransform);
    }

    public static PhysicsState createRandomPhysicsState() {
        GravityState gravity = createRandomGravityState();
        Physics3DState physics3D = DisplayDataCreatorForTests.createRandomPhysics3DState();
        return new PhysicsState(gravity, physics3D);
    }
View Full Code Here


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

    public static PhysicsState createSpecificPhysicsState() {
        GravityState gravity = createSpecificGravityState();
        Physics3DState physics3D = DisplayDataCreatorForTests.createSpecificPhysics3DState();
        return new PhysicsState(gravity, physics3D);
    }
View Full Code Here

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

        int nbFallingLeaves = 20;
        Set<TreeLeafState> fallingLeaves = new HashSet<TreeLeafState>(nbFallingLeaves);
        for (int i = 0; i < nbFallingLeaves; i++) {
            fallingLeaves.add(createSpecificTreeLeafState());
        }
        return new GravityState(gravity3D, fallingLeaves);
    }
View Full Code Here

TOP

Related Classes of barsuift.simLife.universe.physic.GravityState

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.