Skip to content

Commit

Permalink
Doubled smoothing time between Rotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Menithal committed Feb 22, 2020
1 parent 8531d3b commit 70bb6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MACPlugin/ActionCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public override void ApplyBehavior(ref Vector3 cameraTarget, ref Vector3 lookAtT
ironSightsEnabled = true;
// Should have a smooth transition between Iron Sights and non iron sights.
sightsCamera.ApplyBehavior(ref cameraTarget, ref lookAtTarget, player, isCameraAlreadyPlaced);
blend += 1/pluginSettings.cameraGunSmoothing * Time.deltaTime;
blend += (pluginSettings.cameraGunSmoothing / 2) * Time.deltaTime;
}
else
{
Expand All @@ -323,7 +323,7 @@ public override void ApplyBehavior(ref Vector3 cameraTarget, ref Vector3 lookAtT
lookAtTarget = player.head.TransformPoint(lookAtOffset);


blend -= 1 / pluginSettings.cameraGunSmoothing * Time.deltaTime;
blend -= 1 / (pluginSettings.cameraGunSmoothing/2) * Time.deltaTime;
}

blend = Mathf.Clamp(blend, 0, 1.0f);
Expand Down

0 comments on commit 70bb6ea

Please sign in to comment.