戈多 - 当与其他物体碰撞时,物体不会停止

时间:2017-09-06 17:55:51

标签: collision-detection tile godot gdscript

我正在学习Godot Engine和脚本,我试图创建一个简单的游戏,其中一个球移动并与其他物体碰撞。我将碰撞和静态物体附加到精灵,但它没有检测到与任何其他物体的碰撞。为什么呢?

这是场景: This is the scene:

这是附在球上的脚本:

This is the script attached to the ball:

有什么问题?

1 个答案:

答案 0 :(得分:1)

我想通了,我需要使用为碰撞创建的move()函数。

相关问题