Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.4.0f2
Issue ID
817620
Regression
No
Vector3.RotateTowards doesn't work as expected once 90 degree angle is reached
Steps to reproduce:
1. Open attached project
2. Open "test" scene
3. Press play
4. Hold space
("Cube" is rotating around towards the red line)
5. Notice how "Cube" rotation breaks when reaching -90 degrees(gif attached)
Expected behavior: according to unity docs "The current vector will be rotated round toward the target direction by an angle of maxRadiansDelta, although it will land exactly on the target rather than overshoot." Since the direction(the "Cube" object is rotating towards) is a child object of "Cube" it would make sense that "Cube" will never land on the target and should be rotating infinitely.
Reproduced with: 5.2.4f1, 5.3.6f1, 5.4.0f2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Add comment