Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | 1shevelov |
… or arbitrary exponentiation like x^1.1?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | 1shevelov |
… or arbitrary exponentiation like x^1.1?
Reply From: | jgodfrey |
Most of the core math functions are built directly into gdscript
. For example, it provides a float pow ( float base, float exp )
. That said, I’m not sure about cube root
. The core functions are documented here:
See also math - C - finding cube root of a negative number with pow function - Stack Overflow.
Calinou | 2020-08-09 21:22
Thanks! I looked there but missed pow method and was sure there should be more complicated functions somewhere else.
1shevelov | 2020-08-10 12:23
Additionally (and, maybe it’s obvious), certain classes of math are handled by individual objects (such as the Vector-based objects).
jgodfrey | 2020-08-10 13:57