|
Post by benjameeeen on Dec 4, 2017 3:39:54 GMT
Hello everybody.
I have been trying to get the controller to only look while the mouse is down. I have it working but when I release and go back to my Default camera state which has 0 mouse sensitivity it still moves for a second or so instead of stopping looking.
Is there a lerp somewhere I need to end or something?
Thanks all =)
This is kind of doing what I want but whenever I click down the rotation first quickly jumps to the mouse input rotation before I can freely rotate again.
-- thisCameraState is the vThirdPersonCamera in the scene--
if (Input.GetKey(KeyCode.Mouse0)) { thisCameraState.smoothCameraRotation = 8; } else { thisCameraState.smoothCameraRotation = 0; }
|
|