How do make arrows/sticky grenades/ throwing weapons stick to their target

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Witcher64

How do I achieve the effect of arrows sticking to walls or enemies like in the elder scrolls? Right now I am using a RigidBody node in Rigid mode, and I thought maybe I can achieve the effect by changing the mode to static when it enters the enemy collision shape. What is the GdScript function to change the mode or is there a better way to achieve this effect?

:bust_in_silhouette: Reply From: ababen

PinJoint (or PintJoint2D) might be worth checking out