Skip to content
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

[Bullet] Rigidbody doesn't appear to apply rotation #24380

Open
Tracked by #45022
scottpetrovic opened this issue Dec 15, 2018 · 4 comments
Open
Tracked by #45022

[Bullet] Rigidbody doesn't appear to apply rotation #24380

scottpetrovic opened this issue Dec 15, 2018 · 4 comments

Comments

@scottpetrovic
Copy link

Godot 3.1 alpha calinou 6f9aa87 (downloaded 12/4/2018) Windows 10 64-bit

I am applying a rotation on my rigidbody. It appears correct in the viewport. When I actually play my project, the rotation seems to only apply to the collisionshape, but not the mesh. I am attaching a sample project.

You will see the viewport has a different rotation than the actual gameplay. If you select the floor object and rotate it back to 0, everything works as expected again.

potentially related to this ticket... #22904

rigidbody-rotate-test.zip

@scottpetrovic scottpetrovic changed the title Rigidbody doesn't appear to apply transform Rigidbody doesn't appear to apply rotation Dec 15, 2018
@QbieShay
Copy link
Contributor

@AndreaCatania could reproduce. I am seeing some shearing when applying rotation.

@scottpetrovic I advise you to not use non uniform scale, ever. It simply does not work the way you would expect it and the gizmos for colliders are updated as if it worked.

@scottpetrovic
Copy link
Author

@QbieShay Are you saying that the scale of the objects is what is causing the rotation bug? The point I am trying to communicate in my example is that the mesh object does not rotate on rigid bodies. With what I see, the colliders seem to be rotating ok.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 5, 2020

Still valid in e4657bd (and the project crashes for some reason after few seconds)

@AndreaCatania
Copy link
Contributor

Didn't test this yet, but keep in mind that the RigidBody can't be rotated in that way. You have to apply forces to make it rotate or use a kinematic body instead.

@pouleyKetchoupp pouleyKetchoupp changed the title Rigidbody doesn't appear to apply rotation [Bullet] Rigidbody doesn't appear to apply rotation Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants