-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
RigidBody3D does not unlock when lock_rotation set to false #245
Comments
Interestingly, it seems the transform is not set and the bodies don't move back again. My initial guess is the freeze state maybe does something to the shapes that resets them and transform is not applied. |
As for the lock_rotation, I forgot to update it, fixed that. The position not updating is still not fixed, so leaving this open. |
Just partially fixed, got closed automatically by the PR bc it found the work "fix" |
Describe the bug
'lock_rotation = false' does not free the RigidBody3D to rotate freely. It can be rotated by transform.basis, but when dropped, the body does not rotate. The check-box in the Inspector behaves correctly, but the body rotation remains locked.
To Reproduce
For a RigidBody3D, set lock_rotation = true in the Inspector, or by code. Setting lock_rotation = false will not unlock the rotation.
I have provided a test project below that requires the Addon folder with Rapier installed.
1a. The left cube is frozen, showing a separate bug relating to starting frozen identified elsewhere. Please disregard it.
1b. The right cube will fall when the app runs, and come to rest normally on one side.
Expected behavior
Setting lock_rotation = false should allow the RigidBody to rotate due to the effects of gravity, impacts, or other processes.
Environment:
Example project(zip)
rapier_lock_rotation_test.zip
The text was updated successfully, but these errors were encountered: