Jmonkeyengine get point in front of player

So I decided to move on from lwjgl to jmonkeyengine because it is more powerful and I can make games on android. I know how to do this in lwjgl but how can i get the point d distance away from the player in the direction they are looking? In my previous game it was done like this:

	public static Vector3f getMouseLook(float d) {
		
		   float x = Camera.vector.x;
		   float y = Camera.vector.y+Camera.height;
		   float z = Camera.vector.z;
		   //note that the x and y direction are flop flopped due to the way they get rendered
		   float xdir = (float) ((Camera.rotation.y-90)*Math.PI)/180;
		   float ydir = (float) (-Camera.rotation.x*Math.PI/180);

		   float x1 = (float) ((d*Math.cos(xdir)) * Math.cos(ydir));
		   float y1 = (float) ((d*Math.sin(ydir)));
		   float z1 = (float) ((d*Math.sin(xdir)) * Math.cos(ydir));

		   return new Vector3f( x1+x, y1+y, z1+z );
		
	}

but now that does not work :/. Plz halp
Thanks - gopro_2027