Skip to content
Snippets Groups Projects
Commit eade4f23 authored by Yvar's avatar Yvar
Browse files

Adjusted camera

parent 8be091ed
Branches main
No related merge requests found
......@@ -42,10 +42,10 @@ public class CameraController : MonoBehaviour
if (isFocussed)
{
transform.position = Vector3.Lerp(transform.position, focusPos, cameraLerpSpeed * Time.deltaTime);
transform.position = Vector3.Lerp(transform.position, focusPos, cameraLerpSpeed * 5 * Time.deltaTime);
mainCamera.localPosition = Vector3.Lerp(mainCamera.localPosition,
-mainCamera.transform.forward * standardMainCamZ,
cameraLerpSpeed * Time.deltaTime);
cameraLerpSpeed * 5 * Time.deltaTime);
}
else
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment