How to do real raycasting using the mouse

In PlayerController.cpp , check these 2 functions “GetHitResultAtScreenPosition” and “GetHitResultUnderCursor” ,you can see how it’s implemented

1 Like