This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+8 votes

I want my boxes that are defined using a RigidBody2D to keep their orientation. I know I can disable rotation in Box2D using setFixedRotation(), but I haven't found anything similar in Godot. When I just set rotation to 0 using set_rot() each frame my rigid body doesn't respond anymore at all.

in Engine by (63 points)

1 Answer

+23 votes
Best answer

Try setting the Mode to Character Perhaps that would help, it seems to lock the rotation for me

by (483 points)
selected by

it does but is it possible to make it only rotate with it's parent?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.