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
- Brush Size in the Inspector window does not update when the Brush Size in Scene View is changed
- "ArgumentOutOfRangeException" errors are thrown every time a keyboard key is pressed when renaming a component in UI Builder with a symbol and changing the name after label attribute warning
- Values in "Rect Transform" component are only partially updated when changing values in Prefab Mode
- Same Asset Type Focused Inspectors do not repaint when menus are manipulated
- Bool or Trigger Parameters can be selected via right clicking to the right of a Parameter control in the Animator Window
Add comment