Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.4.2f2
Issue ID
861278
Regression
No
Mathf.PingPong occasionally returns negative values
Steps to reproduce:
1. Open attached project "861278.zip"
2. Press play
3. Observe console output
Result: Mathf.PingPong(4676.5f, 1.99f) returns negative value
Expected result: Mathf.PingPong never returns value less than 0 as documented in https://docs.unity3d.com/ScriptReference/Mathf.PingPong.html
Negative values appear more often when 'value t' is bigger
Reproduced with: 5.3.1f1, 5.4.3p4, 5.5.0p1, 5.6.0b1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Add comment