Search Issue Tracker
Won't Fix
Votes
1
Found in
5.0.0f1
Issue ID
672651
Regression
No
Rayhit normal is not completely normalized
Rayhit normal is not fully normalized. It's seems that it lacks of precision.
1. Open project attached by Lukas.
2. Open scene "scene".
3. Play scene.
4. Select gameObject "Cube".
1. Set rotation.y to 90 degrees.
5. You should get log message saying that "hit= True, rayHit.normal= (0.0, 1.0, 0.0), Mathf.Acos(rayHit.normal.y)=NaN
UnityEngine.Debug:Log(Object)
RaycastBehaviour:Update() (at Assets/RaycastBehaviour.cs:18)". It means rayHit.normal.y is higher then 1.
Workaround: normalize rayHit normal.
Regression: 4*
Reproduced: 5.0.0f2, 5.0.0f1, 5.0.0b15
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [macOS] Editor window is not restored to previous position when launching the Editor and mouse cursor is on a different screen
- [Usability] Warning message in an Adaptive Probe Volume Component is not informative enough when Realtime Global Illumination is enabled
- Inspector for Adaptive Probe Volumes is not repainted when toggling Realtime Global Illumination setting in the Lighting Window
- Surface Inputs are not rendering when using the custom BaseShaderGUI
- Reflection Problem custom Cubemap loses its reference when HDR is enabled and the platform is switched
Add comment