Hey all,
I need to draw a target reticle based upon the users mouse position, we are in a large persistent world.
To do this, I’m getting the location under the mouse - and then project it into World space. This works fine when we’re in small X, Y ranges (say < 10000). But once you get to large world scale (> 100,000), my current method becomes a little jittery (see log output image).
The attached image is run on tick - so as the users mouse moves around we do a trace under it and find the location via hit result. This is pretty steady when location numbers are small, but at large numbers there is some variation in the results (I assume it’s an accuracy problem).
So wondering if there are better mechanisms. I’ve also tried ConvertMouseLocationToWorldSpace - same result (probably doing the same thing under the covers).
I don’t need 3 decimal place accuracy, but it does need to be steady (placing a target reticle). Get Mouse Position of Viewport is nice and steady, but I’m unsure how to convert that to WorldSpace…