Package barsuift.simLife.j3d.universe.physic

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


        assertEquals(4, observerHelper.nbUpdated());
        assertEquals(LeafUpdateCode.age, observerHelper.getUpdateObjects().get(0));
        assertEquals(LeafUpdateCode.efficiency, observerHelper.getUpdateObjects().get(1));
        assertEquals(LeafUpdateCode.energy, observerHelper.getUpdateObjects().get(2));
        assertEquals(LeafUpdateCode.fall, observerHelper.getUpdateObjects().get(3));
        MockGravity gravity = (MockGravity) universe.getUniverse3D().getPhysics().getGravity();
        assertEquals(bg, gravity.getFallenGroup());
    }
View Full Code Here


        assertTrue(LeafUpdateMask.isFieldSet(updateParam, LeafUpdateMask.AGE_MASK));
        assertTrue(LeafUpdateMask.isFieldSet(updateParam, LeafUpdateMask.EFFICIENCY_MASK));
        assertTrue(LeafUpdateMask.isFieldSet(updateParam, LeafUpdateMask.ENERGY_MASK));
        assertTrue(LeafUpdateMask.isFieldSet(updateParam, LeafUpdateMask.FALL_MASK));

        MockGravity gravity = (MockGravity) universe.getUniverse3D().getPhysics().getGravity();
        assertEquals(bg, gravity.getFallenGroup());
    }
View Full Code Here

TOP

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

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.