Hi,
How do we use "deg2rad()" function in Godot 4 ? Thanks!
Jesse
Because it is in global scope, it is not a method that belongs a certain object.
Please do look it up in the documentation: https://docs.godotengine.org/en/latest/classes/class_@globalscope.html?highlight=deg2rad#methods
If you're unsure, or need it for whatever reason as a method, then it is simply a dimensionless value which equals the input value * (180/PI).
That worked, thanks!
deg2rad was renamed to deg_to_rad in 4.0 Alpha 15. https://github.com/godotengine/godot/pull/64367 (A bunch of a2b style names were changed to a_to_b style)
Thanks @Kojack !
Pulled from master branch and compiled at time of writing, for me it's still deg2rad(). Am I missing something ?
This is Godot Engine v4.0.alpha.custom_build.0c5f25495