Godot Version
4.2.1
Question
I want my CharacterBody2D to have a child RigidBody2D that is used as a swingable weapon (in a sledgehammer-like fashion).
I bound the bodies together with a PinJoint2D, and when I apply the torque the RigidBody swings nicely, but when I move my character, the RigidBody rotates - the other end of the Body wants to ‘stay in place’. As a result, I can swing the RigidBody just by moving the CharacterBody - I don’t want that.
I want to rotate (or apply the torque to) the RigidBody only by specific key press. PinJoint2D shouldn’t be able to exert any force onto the RigidBody (or maybe it should, but not just to one point, like it does right now, but rather to whole body simultaneously, so it doesn’t go into rotating motion).