diff --git a/GameEngine/src/main/java/gameEngine/GameEditor.java b/GameEngine/src/main/java/gameEngine/GameEditor.java index 8de7a0e..8a0b4a3 100644 --- a/GameEngine/src/main/java/gameEngine/GameEditor.java +++ b/GameEngine/src/main/java/gameEngine/GameEditor.java @@ -71,7 +71,7 @@ scaleXField = new JTextField(5); scaleYField = new JTextField(5); scaleZField = new JTextField(5); - componentDropdown = new JComboBox<>(new String[]{"ColorController", "CopyEntity", "MoveImage"}); + componentDropdown = new JComboBox<>(new String[]{"ColorController", "CopyEntity", "MoveImage", "Physics"}); addChangeListener(posXField, posYField, posZField, rotXField, rotYField, rotZField, scaleXField, scaleYField, scaleZField, nameField); @@ -211,6 +211,9 @@ case "MoveImage": gameScene.addComponentToGameObject(gameObject, new MoveImage(gameObject)); break; + case "Physics": + gameScene.addComponentToGameObject(gameObject, new Physics(gameObject)); + break; default: JOptionPane.showMessageDialog(this, "Unknown Component Selected"); break;