So i found a hingejoint2d script for a pinjoint, but im having trouble getting it to work correctly with a staticbody. why does the script seem to do nothing when connected to a staticbody?

Regular:

Changed for staticbodies: