Get/Set FixedRotation in play mode

This commit is contained in:
Simon Lübeß
2024-01-26 12:51:29 +01:00
parent d4d6cc8e38
commit bc535ddc26
6 changed files with 58 additions and 5 deletions
@@ -431,8 +431,11 @@ namespace GlitchyEditor.EditWindows
ImGui.EndCombo();
}
ImGui.Checkbox("Fixed Rotation", &rigidBodyComponent.FixedRotation);
bool isFixedRotation = rigidBodyComponent.FixedRotation;
if (ImGui.Checkbox("Fixed Rotation", &isFixedRotation))
{
rigidBodyComponent.FixedRotation = isFixedRotation;
}
}
private static void ShowBoxCollider2DComponentEditor(Entity entity, BoxCollider2DComponent* boxCollider)