``` result.CastPosition = input.RangeCheckFrom + input.Range * (result.UnitPosition - input.RangeCheckFrom).To2D().Normalized().To3D(); ``` This code (in Prediction) multiples the z coordinate by input.Range given invalid values.