Angular limit on pin joints doesn't work

Godot Version



Here you can see me firstly testing with no angular limit, and later, when i enable it, the head still does 360 spins without stopping. Besides that, it now does weird rotation movements when it hits the ground.

Is this how it’s supposed to work? May there be better ways to limit the rotation of a pin joint?


I have the same issue. When trying to create a fixed joint where a rigid body character holds a rigid body gun via pinjoint2D with the angular limit set to on and zero.

The rifle is pinjoint2D at the stock.

One workaround I used is a spring joint connected to the muzzle of the gun. So it still gives a bit of loose flexible connection while able to flex the muzzle up and down slightly