Hinge joints are not always respecting the limits
Open
box2d
bug
engine
physics
- Dominant language
- C++
- Stars
- 6.3k
- Forks
- 455
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 129
Description
The hinge joint seems to ignore the lower and upper angle set on it during certain circumstances.
```lua
local position_a = go.get_position("anchor_t_leg_left")*sc
local position_b = go.get_position("anchor_leg_left")*sc
local properties = { enable_limit = true, lower_angle=math.rad(-60),upper_angle = math.rad(-60),reference_angle=0 }
physics.create_joint(physics.JOINT_TYPE_HINGE, "torso#collisionobject", "my_test_joint1", position_a, "leg_left#collisionobject", position_b, properties)
```
Forum thread with video and sample projects: https://forum.defold.com/t/defold-physics-hinge-bug/75745
Contributor guide
Assessment
This issue has not been assessed yet.