This is probably due to the Y axis inversion in the projection matrix set by the glOrtho() function.
Type: Posts; User: MarcS
This is probably due to the Y axis inversion in the projection matrix set by the glOrtho() function.
Issue may come from the definition of your ray.
mouseObjectPos0 = Unproject(mouseScreenPos.x,mouseScreenPos.y,0)
mouseObjectPos1 = Unproject(mouseScreenPos.x,mouseScreenPos.y,1)
From these...