I heard that raycasts can hit performance pretty hard. What are the alternatives? Does mousePick use a raycast, or is it something different? Basically looking for ways to lower the performance cost of raycasts.
I'm making an fps, if my player is looking at an object, and within a certain distance of it, it would be good to put "pick up gun", "open door"..etc, would this mean raycasting every frame and seeing what we hit?
Thanks