Timeline for How do I resume the rotation where it last rotates when it got pause?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 15, 2022 at 17:01 | vote | accept | Shihs Shihis | ||
May 13, 2022 at 18:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 13, 2022 at 14:25 | answer | added | Arian_ki | timeline score: 1 | |
Apr 13, 2022 at 9:32 | comment | added | Zibelas |
How about instead of setting speed to 0, you introduce a pause bool. That way you can either add a condition in your FixedUpdate to only Rotate when you are not paused or multiply it in your rotate function (0 for paused, 1 for not paused).
|
|
Apr 13, 2022 at 7:48 | history | asked | Shihs Shihis | CC BY-SA 4.0 |