Rotation counts every full rotation, will this overflow?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sugor

My object is changing everytime because its angle is attached to the angle of the mouse but I’m overthinking if the the full rotation of this object increases, so it does. I tried to print(rotation) and it increases the number of times it completes a fully rotation even the rotation_degrees. Will this be a problem to my game if it the game is long, or will it overflow and give bug to the game.

:bust_in_silhouette: Reply From: MrEliptik

If you are in 2D, rotationis a 64 bits float, see: GDScript reference — Godot Engine (stable) documentation in English. It means its upper limit is 1.79769e+308 which is pretty big.

In 3D, the rotation is a Vector3 which uses 32 bits floats. This means a max value of 3.4028235e+38

You should be safe for now!