📜  godot vector2 distance - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:25.753000             🧑  作者: Mango

代码示例1
# Vector2.distance_to(Vector2 to)

var a = Vector2(1,0)
var b = Vector2(3,0)
var distance = a.distance_to(b)