Download

Make LineTrace from on-screen coordinates in VR

Hi all,
How can I correctly make line trace in VR from on-screen coordinates (mouse click position)?
If I use coordinates and rotation from ConvertMouseLocationToWorldSpace, the result is incorrect.

We did it, but unfortunately I have no sources now and I don’t remember details. Maybe transform returned by ConvertMouseLocationToWorldSpace is relative to camera?

Looks at this if help you