Var yRotation = Quaternion.AngleAxis(_mouseAbsolute.x, ) So if anyone else stumbles across this problem in the future just change this line: He was literally turning into a helicopter and flying around the scene (was hilarious to watch).
(Maybe because of the RigidBody on it? Not sure). I am using a parent GameObject for my character and I was having issues with the character spinning around violently around the scene. Great job, but I did have to make one slight edit. Sorry for bringing back the dead, but can I say that this is the best Smooth Mouse Look script I have found? It feels amazing! All of the other ones available online that I've seen have a nasty, sloppy smoothing effect after you've stopped moving your mouse. If you've got a second to point me in the right direction it'd be much appreciated! Thanks in advance. I am very new to programming so I'm really just hacking and chopping my way through with lots of copying and pasting of other people's excellent work (like yours!) but what I was thinking was that maybe I should put in some kind of check for if the player has turned upside down and then invert the x axis rotation or something? Grasping at straws a bit there. When you revert to flying upright the controls return to normal. This works when I set both clamping values to 360, however when the player is flying upside down the left and right mouse looks are inverted so left looks right, etc. The thing I am trying to add to it is to allow the player to do 'loop the loops' in the air and make 360 degree turns in all axes. This may be a little wacky but I've added this script to a 3rd person game in which the camera follows the player who is flying around in 3d space. Just wanted to say, what a great script! Really added a lot to a project I'm working on so just wanted to say a big THANK YOU!