Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Anatoly Nikiforov |
Here is my code:
var num = abs(fmod(global_transform.origin.x, 2.0))
print(num)
if num == 0:
print("EVEN POSITION")
Here is an output:
0
EVEN POSITION
0
0
0
0
...
What am I doing wrong?