Unity Issue Tracker - Mathf.Floor produces inconsistent results when processing Physics.Raycast.Point X coordinate
Closed
UUM-69887
Mathf.Floor produces inconsistent results when processing Physics.Raycast.Point X coordinate
Unity: 3D Physics
Won't Fix
6.0.X
2023.2.X
2022.3.X
2021.3.X
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
How to reproduce:
1. Open the “MathTest“ project
2. Open the “SampleScene”
3. Enter Play Mode
4. Hover over the top-right of the “Plane” GameObject in the game view then press the space key
5. Observe the Console
Expected result: The x coordinate should stay the same since it is a plane
Actual result: The x value changes when the Mathf.Floor function is applied