Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Need tips for my camera script.

$
0
0
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 :)

Code (CSharp):
  1.     void CameraLook()
  2.     {
  3.         Vector3 cameraLook = Input.mousePosition;...
Need tips for my camera script.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>