Drag & Drop


I'm using jME 2 to realize a drag & drop method. In my application I have a box with 3004300 dimensions and with the center of (0,0,0), this is my "terrain" and with drag & drop method I'd like to add some objects to the universe. I use the getWordCoordinates function to transform the mouse screen coordinates to a coordinate of the universe on my terrain but this function returns some interesting results like: [X=-7643.3086, Y=-3288.3909, Z=-5974.0835] and this results seems to be not real.

Here my code

if (mouseOnCanvas && MouseInput.get().isButtonDown(0) && noCollision) {

Vector2f screenPos = new Vector2f(cursor.getHotSpotPosition().x,


// Get the world location of that X,Y value

Vector3f worldCoords = display.getWorldCoordinates(screenPos, 1f);// 1f is nearPlane




If anybody have an idea how to realize a drag & drop method or what is the problem with mine please replay. Thanks!