I'm new to Godot and I don't know how to write the code for the ladder correctly so that its code works with the physics of the player.
(I take all the info either from sources or from videos on YouTube)
The player's script in the photo
I will be grateful in advance for your help.