I was having a lot of issues with some camera code I ported from Unity and just realized why it was broken.
The value I am getting with RayCastHit’s Distance value is not a correct value for me and I can’t figure out if there is some sort of unit conversion I am missing or what. nes
You need to get a minimal code replicator of this so it can be investigated, e.g. a short class that creates a plane, raycasts at it and show the distance is incorrect. There is not enough to go on here.