Camerascript fixed update
This commit is contained in:
1 parent
db5290b3f2
commit
d32f3bb818
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user