Godot - Object doesn't stop when colliding with other object

2k views Asked by At

I am learning Godot Engine and scripting, and I tried to create a simple game, where a ball moves and collides with other objects. I attached collision and static body to the sprite, but it does not detect collision with any other object. Why?

This is the scene: This is the scene:

This is the script attached to the ball:

This is the script attached to the ball:

What is wrong?

1

There are 1 answers

0
user193464 On

I figured out, I needed to use the move() function, that was created for collisions.