Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Montasir Raihan |
Hello everyone. I need an explanation of this code.
func get_button_pos():
return position + radius
This func returns the addition of two vectors, position and radius. Both of them are Vector2(). But I don’t understand how the engine calculates the length of get_button_pos()
. Need explanation please.
If you still need something to know, let me know. Thank you.
Montasir Raihan | 2020-12-10 06:57
The length of what? Are you referring to the length of the returned vector?
Ertain | 2020-12-10 17:54