public void layoutNodePosPlace() { for (Node n : net.fNodes) { float randPos = net.fNodes.size() * 10f + 50f; n.pos.setXYZ( Integer.MAX_VALUE / (float) n.getId(), Integer.MAX_VALUE / ((float) String.valueOf(n.getId() + 3).hashCode()), Func.rnd(-randPos, randPos)); } }