From ddc8019b06c19bc6260d81d96c75e364f9437d81 Mon Sep 17 00:00:00 2001 From: hiddevanesch <64023154+hiddevanesch@users.noreply.github.com> Date: Thu, 6 Apr 2023 11:07:56 +0200 Subject: [PATCH] Update MainPanel.java --- src/main/java/nl/group5b/gui/elements/MainPanel.java | 2 ++ 1 file changed, 2 insertions(+) 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(); }