private void scaleAsChild(float percent, Vector3f dist) {
            float childScale = mapValue(percent, 1.0f / poiRadius, 1);
            Vector3f distToHorizon = dist.normalize();
            Vector3f scaledDistToHorizon = distToHorizon.mult(childScale * poiRadius);
            Vector3f rootOff = dist.add(scaledDistToHorizon);
            debugTools.setBlueArrow(Vector3f.ZERO, rootOff);
            getRootNode().setLocalScale(childScale);
            getRootNode().setLocalTranslation(rootOff);
            //prepare player position already
            Vector3f playerPosition = dist.normalize().mult(-poiRadius);
            setPlayerPosition(playerPosition);
        }
WorldOfInception - Find the galaxy center ;)

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