From d32f3bb8182b2969384c9dbec92fb33bbf19ecf4 Mon Sep 17 00:00:00 2001 From: Marc Gauch <34353267+marcgauch@users.noreply.github.com> Date: Fri, 8 Dec 2023 08:14:16 +0100 Subject: [PATCH] Camerascript fixed update --- .vscode/settings.json | 2 +- Assets/CameraScript.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d84f0d8..701c32e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -51,5 +51,5 @@ "temp/": true, "Temp/": true }, - "dotnet.defaultSolution": "Terrain.sln" + "dotnet.defaultSolution": "VR_Terrain.sln" } \ No newline at end of file diff --git a/Assets/CameraScript.cs b/Assets/CameraScript.cs index f23395c..6220843 100644 --- a/Assets/CameraScript.cs +++ b/Assets/CameraScript.cs @@ -77,7 +77,7 @@ public class CameraScript : MonoBehaviour controls.Keyboard.resetCameraRotation.performed += ctx => ResetCameraRotation(); } - void Update() + void FixedUpdate() { // Move the object along the X and Z axes based on left stick input Vector3 moveDirection = new Vector3(moveInput.x, heightChange, moveInput.y);