Godot Version
4.3
Question
I’ll explain everything in detail in a video here, thanks for any help :):
4.3
I’ll explain everything in detail in a video here, thanks for any help :):
Godot uses radians, not degrees, for angles/rotation. In the inspector you set degrees but it gets automatically converted: GDScript exported properties — Godot Engine (stable) documentation in English
You can use deg_to_rad
to convert between the two (or in your case 180
is simply PI
).
It look like the ‘flickering’ happens because your are inverting the position every physics tick in line 57
. You should update the position only once when the direction changes.
that was extremly helpful thank you! I’ll try to remember that deg_to_rad for the future