public void setPlayerPosition(Vector3f vec) {
            if (playerPos == null) {
                playerPos = new Vector3f();
            }
            playerPos.set(vec);
        }
WorldOfInception - Find the galaxy center ;)

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