Skip to content

Commit f9e829c

Browse files
committed
Delete unused codes
1 parent 14fd3a6 commit f9e829c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,7 @@ protected void UpdateLookInput()
374374
}
375375
else
376376
{
377-
float rotY = (Quaternion.LookRotation(
378-
new Vector3(lookDirection.x, 0, lookDirection.y)).eulerAngles.y +
379-
CacheGameplayCameraControls.CacheCameraTransform.eulerAngles.y);
380-
PlayerCharacterEntity.SetLookRotation(Quaternion.Euler(0, rotY, 0));
377+
PlayerCharacterEntity.SetLookRotation(Quaternion.LookRotation(new Vector3(lookDirection.x, 0, lookDirection.y)));
381378
}
382379
}
383380
}

0 commit comments

Comments
 (0)