Skip to content

Commit

Permalink
Removed bounciness on camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryazaky committed Jul 9, 2022
1 parent 8357f5d commit 60f2760
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Assets/Scenes/Scene-1_Gameplay.unity
Original file line number Diff line number Diff line change
Expand Up @@ -7920,7 +7920,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
offset: {x: 0, y: 1, z: -10}
smoothFactor: 3
directionDistance: 3.5
directionDistance: 3
--- !u!1 &251966238
GameObject:
m_ObjectHideFlags: 0
Expand Down
2 changes: 1 addition & 1 deletion Assets/_Scripts/Scene-1/CameraController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private void FixedUpdate()
{
if(target != null)
{
oppositePos = Vector3.Lerp(oppositePos, targetDir * directionDistance, smoothFactor * Time.fixedDeltaTime);
oppositePos = Vector3.Lerp(targetDir * directionDistance, oppositePos, smoothFactor * Time.fixedDeltaTime);
Vector3 targetPos = target.position + offset + oppositePos;
Vector3 smoothPos = Vector3.Lerp(transform.position, targetPos, smoothFactor * Time.fixedDeltaTime);
transform.position = smoothPos;
Expand Down
4 changes: 2 additions & 2 deletions UserSettings/EditorUserSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ EditorUserSettings:
value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d
flags: 0
RecentlyUsedScenePath-1:
value: 22424703114646680e0b0227036c6c1313191d677c170b3124273036ecf57a2decee22f0
value: 22424703114646680e0b0227036c6c1313191d677d170131202c0d3fe3f97a2decee22f0
flags: 0
RecentlyUsedScenePath-2:
value: 22424703114646680e0b0227036c6c1313191d677d170131202c0d3fe3f97a2decee22f0
value: 22424703114646680e0b0227036c6c1313191d677c170b3124273036ecf57a2decee22f0
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650
Expand Down

0 comments on commit 60f2760

Please sign in to comment.