mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Get/Set FixedRotation in play mode
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user