Guest User

Untitled

a guest
Jan 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. // find angleX & angleY
  2. angleX = mouseX * lookSpeed;
  3.  
  4. angleY = mouseY * lookSpeed;
  5. angleY = Mathf.Clamp(angleY, focusToMinY, focusToMaxY);
  6.  
  7. // rotate Focus around player
  8. Player.Focus.RotateAround(Player.Pos, Player.Right, angleY);
  9. Player.Focus.RotateAround(Player.Pos, Player.Up, angleX);
Add Comment
Please, Sign In to add comment