godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.79k stars 19.42k forks source link

Pinjoint 2D Movement and Jitter with Zero softness #79863

Open ZachAR3 opened 11 months ago

ZachAR3 commented 11 months ago

Godot version

4.1.1.stable.mono

System information

Arch Linux Zen Kernel 6.3 Ryzen 5900x Nvidia RTX 2080TI 11GB (proprietary drivers)

Issue description

When using pin joints with the softness set to zero in use with rigid body 2d's:

  1. Still move and often glitch through small objects
  2. Cause massive jumps / jitters with a high bias set

Setting softness to zero should make them act as an immutable axle that can only rotate, but they act like they are on springs even with CD set to continuous Cast Shape on all objects this happens.

Steps to reproduce

Create a small circular Rigid body parent it to a pin joint and a larger heavier (50kg or more for best results) rigid body with it as the parent and drop it with a high bias, it will jump around and jitter. And with a low bias (which shouldn't matter with softness set to 0) it visibly moves quite a bit.

Minimal reproduction project

BrokenPinJoints.zip

FelipeRamones commented 10 months ago

Waiting for this to be fixed, have been trying to make a fishing line with pin joints and rigid bodies and been losing my mind lol

ZachAR3 commented 2 months ago

As a workaround setting the bias to an extremely low value removes the bounce. though at the cost of it slowly shifting after impact and looking a bit buggy.