- Home /
Camera sensitivity
I am using a simple mouse look code along with another script that allows the camera attached to a first person controller to zoom in. I want it so when I zoom, the sensitivity is decreased. What is the best way to go about this?
Answer by Jesse Anders · Jan 19, 2011 at 01:13 AM
Presumably there's a 'sensitivity' variable somewhere, and a 'zoom' or 'field of view' variable somewhere. What you'll probably want to do is to tie the sensitivity value to the current zoom value so as the zoom factor increases (or the field of view decreases), the sensitivity decreases, and vice versa.
The relationship should reduce to simple arithmetic, but if you get stuck on it, edit your post and tell us how the 'zoom' value is being represented (a 'zoom' factor? field of view? etc.).