mattm
26-06-2007 15:39:58
Hi!
I try to create a mouse picker in my program but the RaySceneQuery seems to have some problems....
I've first tried like that:
but the execution give me a NullReferenceException
So I've just try like this:
and I get the same error.
Isn't it strange?....
I try to create a mouse picker in my program but the RaySceneQuery seems to have some problems....
I've first tried like that:
Ray mouseRay = Camera.GetCameraToViewportRay(mouseX, mouseY);
mRaySceneQuery.setRay(mouseRay );
but the execution give me a NullReferenceException
So I've just try like this:
mRaySceneQuery.setRay(new Ray(new Vector3(3f, 3f, 3f), new Vector3(3f, 4f, 2f)));
and I get the same error.
Isn't it strange?....
