So this script works fine, its for my car racing game. When you are in the 'cockpit' you can look around, the only problem is that when the car rolls over the camera does not roll with it.
The thing is i do want the camera to roll a little bit, but i need to clamp it, to maybe a 45 degree when compared to the car. Any idea's how i can acheive this?
Im a newbie scriptor so any help is appricated![Smile :) :)]()
Need tips for my camera script.
The thing is i do want the camera to roll a little bit, but i need to clamp it, to maybe a 45 degree when compared to the car. Any idea's how i can acheive this?
Im a newbie scriptor so any help is appricated

Code (CSharp):
- void CameraLook()
- {