GetMouseRay not working

In the examples there is
// NOTE: This function is NOT WORKING properly!
ray = GetMouseRay(GetMousePosition(), camera);
and i just wanted to ask, how it is not working properly.
I wanted to use it in conjuction with DrawRay, but nothing displayed. You can see the ray not being drawn in core_3d_picking example.

Thank you.

Comments

  • edited August 24
    Hi zxey! Welcome to the forum!

    GetMouseRay() works ok, I should remove that comment, what version of raylib are you using? Could you try latest raylib develop branch from github?

    When launching a ray from camera, you dont see the ray, you should rotate the camera to see it. In core_3d_picking example you can rotate it with ALT+PressMouseWheel
Sign In or Register to comment.