I'm new to game development and I'm trying to build my first Pong game on the Godot engine. the tutorial I'm following is given below.
What I don't understand is the line:
ball_pos += direction * ball_speed * delta
How is the new ball position being calculated?
As far as I know,
delta is the time elapsed in seconds (float) since the
last _process() call.
Also, why is the direction vector set to
I'm looking for a clear explanation since the tutorial doesn't explain much. Thank you.