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());
}