Godot Version
4.5.1 stable
Question
I want to make “getting over it”-like movement in Godot. I have a 2 rigid bodies: player and a stick. And i managed to connect them using PinJoin2D so that when stick is rotated (using mouse), it can be used to push the player. The problem is that i cannot make it so that the stick can also go forward/backward relative to player in the axis it points to.
-moving using force on a stick moves the player as well because of the joint
-moving joint itself (and stupidly updating it by changing “disable collision” twice) doesnt makes sense geometrically and doesnt work properly anyway
-changing position of a stick works visually up until it actually collides with something. then everything breaks apart.
I also lack knowledge to just write my own joint.
TLDR: is there a way to dynamically change position of stick relative to player when they are connected with PinJoin2D (or do something similar without using this joint)