📜  在 godot 中的点之间移动 - TypeScript 代码示例

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

代码示例1
# Moves to Vector(0,0) at a speed of 1 unit per second
var speed = 1 # Change this to increase it to more units/second
position = position.move_toward(Vector2(0,0), delta * speed)