Question by 
               tribalworx1976 · May 15, 2018 at 04:06 PM · 
                camerarotationswitchthird-personfirst-person  
              
 
              Camera Rotation Switching Problem
Hi, I have a player with a camera in third person view and another camera in first person view and am using the following script to switch between the 2 camera's, the problem is that when I switch between them if my player has moved or rotated in between switching the camera reverts back to its previous line of sight before the cams were switched. I hope you get what I mean. I have looked everywhere and tried for days and just cannot seem to get it to work. PLEASE HELP!!
         public Camera FirstPersonCam, ThirdPersonCam;
     public KeyCode Tkey;
     public  bool camSwitch = false;
 
     void Update()
     {
         if (Input.GetKeyDown(Tkey))
         {
             camSwitch = !camSwitch;
             FirstPersonCam.gameObject.SetActive (camSwitch);
             ThirdPersonCam.gameObject.SetActive (!camSwitch);
         }
     }
 }
 
              
               Comment
              
 
               
              Your answer