You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very simple setup of a Node2D with two rigid body children and a pin joint child. The pin joint affixes the two bodies together. I attempt to enable "angular limit" but no matter what settings I use for the bounds nothing is affected. The body pivots just fine and can be motorized without issue. According to the code it is enabled.
Steps to reproduce
create a Node2D scene
create 2 rigid bodies as children, each with collision shapes and sprites
create a pin joint 2d and attach the two bodies
enable angular limit
instantiate this scene into a different, larger scene
on run the limb just falls loosely
There is also an open issue which requests this feature. This could be closed now since the feature was "added" 🙃 (and now can be tracked via this issue)
4) Worked at some point
According to this video it seemed to work at some point (even though they never were hard limits) so I am trying to figure out when it broke. This seems to be the code responsible. Doesn't look crazy complicated but I have no experience with C++.
In my own limited testing of this, I've noticed that sometimes the values supplied in the editor or via code for the angular limits are ignored, and sometimes they are not. In remote debug the limits snap back to a default of -180 to 180 when they are being ignored.
(I also tried to change the values withing the remote session, but I got weird behavior--things flying around wildly by themselves.)
Tested versions
Godot 4.2.2 stable mono
System information
Linux - Forward+
Issue description
I have a very simple setup of a Node2D with two rigid body children and a pin joint child. The pin joint affixes the two bodies together. I attempt to enable "angular limit" but no matter what settings I use for the bounds nothing is affected. The body pivots just fine and can be motorized without issue. According to the code it is enabled.
Steps to reproduce
on run the limb just falls loosely
Minimal reproduction project (MRP)
project.zip
The text was updated successfully, but these errors were encountered: