Camerascript fixed update

main
Marc Gauch 2023-12-08 08:14:16 +01:00
parent db5290b3f2
commit d32f3bb818
2 changed files with 2 additions and 2 deletions

View File

@ -51,5 +51,5 @@
"temp/": true,
"Temp/": true
},
"dotnet.defaultSolution": "Terrain.sln"
"dotnet.defaultSolution": "VR_Terrain.sln"
}

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);