public String getCoordinates() {
            InceptionLevel cur = this;
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.insert(0, this.getPlayerPosition());
            stringBuilder.insert(0, this.getPositionInParent() + " / ");
            cur = cur.getParent();
            while (cur != null) {
                stringBuilder.insert(0, cur.getPositionInParent() + " / ");
                cur = cur.getParent();
            }
            return stringBuilder.toString();
        }
WorldOfInception - Find the galaxy center ;)

@author normenhansen
jme3-examples/src/main/java/jme3test/games/WorldOfInception.java