I need to experiment with different velocity values for my multi state jump animation so I would like to print the velocity of my Vector2 to the debug.
How to print velocity
To print out a vector you can litterally just specify to the print the vector, as such:
var vec : Vector2 = Vector2(1, 1)
print(vec)
If you mean you would like to print the size / speed / length of the vector and not the vector itself then you can do:
var vec : Vector2 = Vector2(1, 1)
print(vec.length())
2 years later
Megalomaniak added the Godot Help tag .