-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RigidBody2D rotates on collision in 3.2, works fine in 3.1 #35514
Comments
Is the version 3.2 rc3? I believe I'm experiencing the same issue with a vehicle that's rotating to the right in rigidbody mode. |
To fix it i have to set the angular damp in 3.2 project. But it really irritate me cause in 3.1.2 even if the rigid body has angular damp of 0 still it does not rotate. So i think a fix should happen cause if u have multiple rigid bodies in ur project that really gonna ham per ur mood. |
Turns out my issue was unrelated so I managed to fix it. |
Can you provide a project that triggers the issue? |
We'd really need a test project to debug with and confirm if it's a regression or a project-specific issue. |
Thanks! The problem seems to be (in In 3.1 collisions seem to have only a very small impact on angular velocity (less than 0.05), while in 3.2 (and as early as the first build, alpha 0, which is a34b77e) the influence is much stronger (e.g. 25). So something much have changed between |
I'm running a |
That's #29020 CC @raphael10241024 |
I tested and I confirmed that a local revert of 1808c51 fixes the regression for the project in #35514 (comment). |
That being said, I get similar issues again even after the revert if I set e.g. a mass of So I'm not sure #29020 is really to blame, but the issue might be with the project code, which worked by chance due to the bug of wrong inertia being used for circle shapes. So IMO it's not a regression per se, it's just a bugfix that exposed a flaw in the game physics logic. I'll keep this open so that others may help debug it and maybe suggest a better way to handle realistic puck physics with Godot's 2D physics engine. |
Thanks for your so much work , hopefully it will be fixed soon. So that i can smoothly transfer from 3.1 to 3.2 :) |
Godot version:
3.1.2
OS/device including version:
Windows 7
Issue description:
When opening a 3.1.2 project on any of the version of godot 3.2 it rotates when collison happens. In 3.1.2 it doesn't rotates only moves.
Steps to reproduce:
Just make any project where rigidbody collides with something in 3.1.2 and then open it in 3.2.
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: