mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-09 01:29:02 +00:00
We can'y use clamp() to keep incrementing values between 0 and 360 as clamp() returns 360 for any value > 360. So, 361 --> 360 although we need 361 --> 1. What we want here is called wrap(), but Godot has no function for this so I provide one.