Search Issue Tracker
Fixed in 2018.2.X
Votes
0
Found in
2017.1.1f1
Issue ID
979578
Regression
No
Vector2.Angle does not always return 0 between two identical vectors
Steps to reproduce:
1. Open attached “Angle.zip” Unity project
2. Enter Play mode
3. Observe Console window
Expected results:
Angle with parameters Vector2(7.434414f, -10.59828f) and Vector2(7.434414f, -10.59828f) returns 0
Actual results:
Angle with parameters Vector2(7.434414f, -10.59828f) and Vector2(7.434414f, -10.59828f) returns 0.01978234
Reproduced in 2018.1.0b1, 2017.3.0f3, 2017.2.1p1, 2017.1.2p4, 5.6.5f1, 5.5.5p2, 5.5.0f3
Note: Same results with Vector2.SignedAngle
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search: Inspector section icon is less sharp/more pixelated than other editor icons
- Search description string is always truncated
- [VFX] When Grouped Nodes are converted to Subgraph Operator resulting Graph Node is not included in the Group
- Search window icons are less sharp/more pixelated than other editor icons
- The Inspector can be covered when scaling the horizontal separator bar
Add comment