diff --git a/src/main/java/nl/group5b/gui/elements/MainPanel.java b/src/main/java/nl/group5b/gui/elements/MainPanel.java index d96c099..abcede0 100644 --- a/src/main/java/nl/group5b/gui/elements/MainPanel.java +++ b/src/main/java/nl/group5b/gui/elements/MainPanel.java @@ -470,6 +470,8 @@ private void renderAddVehiclePopup() { vehicleSpawnPosition = new float[]{0, 0}; vehicleSpawnRotation = new float[]{0}; maxSpeed = 0; + thirdPersonCamera.setBody(selectedVehicle); + thirdPersonCamera.resetView(); }