Physics2D changes behaviour after upgrade?

This happened to me before, now that project is stuck with 2019.2.0f1. And it’s just happened again with my current project when I upgraded from 2020.1.5f1 to 2020.1.6f1.

In both projects it happened to my ragdolls, they were basically just Rigidbody2D (head, arms, legs) connected body using HingeJoint2D. In the “correct” versions, the ragdolls looked stable, which means when applied force to the body, the ragdolls moved around, hit walls,…etc but the arms, legs, head only moved a little to the body and quickly returned to the designated angles. In the “incorrect” versions, the ragdolls were so unstable, arms, legs, and head even rotated 360 degrees around, sometimes even displaced far from the body.

Downgrade to the previous version automatically solved the problems. There were no files changes when upgraded, except for the ProjectVersion.txt.

There’s only a few 2D physics bugs reported but one is related to the HingeJoint2D that might be related to your issue however it’s impossible to be sure. This is the bug report: Unity Issue Tracker - HingeJoint2D do not respect starting angle when enforcing angle limits

This bug didn’t get fixed in the current round of bug fixes but will get fixed in the next round.

Please submit a bug report though if you have a 100% reproducible issue, especially if you have a cut-down simple project that reproduces it.

1 Like