333GameStudio

Lock Rotation

Jun 19th, 2016
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var lockPos = 0;
  2.  
  3. function Update()
  4. {
  5.      transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles.x, lockPos, lockPos);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment