0 votes

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.

Godot version latest
in Engine by (46 points)

1 Answer

0 votes
Best answer

If you are in 2D, rotationis a 64 bits float, see: https://docs.godotengine.org/en/stable/getting_started/scripting/gdscript/gdscript_basics.html#float. 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!

by (619 points)
edited by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.