How do I point a laser (raycast) in the direction the camera is facing.
This is for a first person shooter. Or really any type of game where you need to know what the player is looking at.
-
Unfortunately the feature for this didn't make it into the beta build.
If this is for first person control the closest you can do it to camera gadget for your first person view and line the ray up along the center of the camera. Its a bit rough but you can get reasonable results from it. -
Thank you the response. I will try that out.
Please sign in to leave a comment.