private void scaleAsParent(float percent, Vector3f playerPos, Vector3f dist) {
            float scale = mapValue(percent, 1.0f, poiRadius);
            Vector3f distToHorizon = dist.subtract(dist.normalize());
            Vector3f offLocation = playerPos.add(distToHorizon);
            Vector3f rootOff = offLocation.mult(scale).negate();
            rootOff.addLocal(dist);
            debugTools.setGreenArrow(Vector3f.ZERO, offLocation);
            getRootNode().setLocalScale(scale);
            getRootNode().setLocalTranslation(rootOff);
        }
WorldOfInception - Find the galaxy center ;)

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