Hi! I've been trying to make a grappling hook for my game, but whenever i attach myself to the hook, the node that connects to the player seems to teleport to some random point along the radius of where the hook can reach. This only happens after i detach myself from the hook for the first time after loading the game in debug. I have no clue why this happens.
The hook is made of a static grapple_anchor node and a moving player_anchor node that are connected via a pinjoint node. In the code for the player and the grappling hook, I've written it so that the player will reparent itself to the player_anchor and disable it's usual movement so the player moves with the player anchor. If the player releases the grapple button, the player will reparent itself to its original parent. I used a bit of math to make sure the player_anchor always leans towards the player when not attached as well.
In the video, you can see that the first time I attach to the hook, the player appears next to the grapple_anchor for a split second before appearing where it should be. After I detach and reattach myself later, though, you can see the player seems to appear way higher than where it should be, and proceeds to spin around really fast, seemingly due to some built up momentum somehow.