Skip to content

Commit

Permalink
Normalized the rotation speed to TimeScale
Browse files Browse the repository at this point in the history
  • Loading branch information
szylis committed Jan 23, 2024
1 parent 515840b commit 08728a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/AWSIM/Scripts/FollowCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void LateUpdate()
// include additional rotation for camera rotating around target
if(rotateCameraAroundActive)
{
currentCameraDirection += rotateAroundSpeed * Time.deltaTime;
currentCameraDirection += rotateAroundSpeed * Time.deltaTime / Time.timeScale;
if(currentCameraDirection > 360)
{
currentCameraDirection -= 360f;
Expand Down

0 comments on commit 08728a8

Please sign in to comment.