I didn't write that code ;)Actually, pretty sure that's a Unity standard asset.
Quote from: $trinick on April 18, 2016, 11:28:42 PMI think you meanwhile(rotationAmount > 360.0f) rotationAmount -= 360.0f;Real Talk, is that a better way to achieve what I was aiming? That's real old code and I think the goal was to reset the object at no rotation after it did a full loop (sort of like snapping it back to 0 if it goes over).
I think you meanwhile(rotationAmount > 360.0f) rotationAmount -= 360.0f;