How to disable rotation for a RigidBody2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By theapparatus
:warning: Old Version Published before Godot 3 was released.

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.

:bust_in_silhouette: Reply From: The_Duskitty

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

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

5alidshammout | 2022-11-05 03:32