Hi i have some probs on casting ray in gui node this what i use :
Vector3f myVector2D = new Vector3f(inputManager.getCursorPosition().getX(),inputManager.getCursorPosition().getY(),0);
Vector3f myVector2Df = new Vector3f(0,0,1);
Ray myRay = new Ray(myVector2D, myVector2Df);
CollisionResults myResults = new CollisionResults();
MyGui is bound to guiNode and works fine.
Seems when i cast ray i cant get exactly objects,they are more randomly hited,soo that must be some thing wrong in my ray casting . Any 1 know how to do a better ray casting in guiNode?