Camerascript fixed update
parent
db5290b3f2
commit
d32f3bb818
|
@ -51,5 +51,5 @@
|
||||||
"temp/": true,
|
"temp/": true,
|
||||||
"Temp/": true
|
"Temp/": true
|
||||||
},
|
},
|
||||||
"dotnet.defaultSolution": "Terrain.sln"
|
"dotnet.defaultSolution": "VR_Terrain.sln"
|
||||||
}
|
}
|
|
@ -77,7 +77,7 @@ public class CameraScript : MonoBehaviour
|
||||||
controls.Keyboard.resetCameraRotation.performed += ctx => ResetCameraRotation();
|
controls.Keyboard.resetCameraRotation.performed += ctx => ResetCameraRotation();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void FixedUpdate()
|
||||||
{
|
{
|
||||||
// Move the object along the X and Z axes based on left stick input
|
// Move the object along the X and Z axes based on left stick input
|
||||||
Vector3 moveDirection = new Vector3(moveInput.x, heightChange, moveInput.y);
|
Vector3 moveDirection = new Vector3(moveInput.x, heightChange, moveInput.y);
|
||||||
|
|
Loading…
Reference in New Issue