Camerascript fixed update

This commit is contained in:
Marc Gauch committed 2023-12-08 08:14:16 +01:00
1 parent db5290b3f2
commit d32f3bb818
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);