public static int calculateFloor(double height, FloorSettings settings) {
		int res = settings.floorLevels.length-1;
		for (int i = 1; i < settings.floorLevels.length; i++) { //Why start from 1? Because 0 is water level but we don't want it to be a separate floor.
			if (height < settings.floorLevels[i]) {
				res = i-1;
				break;
			}
		}
		
		return res;
	}