Movement in the _physics_process?

In this video, shouldn’t you have moved all of the movement code _physics_process??

All physics should happen in the _physics_process and not the _process function. Because Player was changed to a Rigidbody (a physics node), and the movement was changed to physics movement, it should be in the _physics_process

we were wondering the same thing.

After a bit of research, we concluded because the game is so simple the game will run the same either way. What we started asking ourselves was why is this beginner’s course not teaching best practice from the foundation? this would have been a perfect time for a discussion of _process vs _physics_process.

6 Likes

Privacy & Terms