x


Mouse Look Y Sensitivity doesn't change

Hi,

I've been using the standard mouse look script but I can't seem to change the sensitivity of the Y axis. I have made sure that XandY is selected in the axes, and have tried to change the sensitivity in the code as well as in the interface. I also tried to replace the code with the one found here - http://forum.unity3d.com/viewtopic.php?t=42003&highlight=sensitivity, but it still doesn't do anything.

Does anyone know why this doesn't work?

thanks

more ▼

asked Apr 28, 2010 at 10:05 PM

Pure Phase gravatar image

Pure Phase
239 55 53 54

Are you getting any errors? Or it just doesn't work? Any chance of posting the offending code? -Larry

Apr 28, 2010 at 10:16 PM Larry Dietz

Well, you can view the code from the link in the message, as I haven't changed it at all. I wondered whether it could be to do with my input axes, although I haven't changed these from the standard either :/

I'm not getting any errors either

Apr 28, 2010 at 10:30 PM Pure Phase

I just created a test project, containing only a terrain, a camera and the script from your link. The script appears to be working just fine. Adjusting the sensitivity did impact the panning. Making small changes to the sensitivity didn't have a lot of impact, but large changes seem to work fine. To test that it is working at all, try setting the sensitivity to -25 and see if it moves opposite what it did before. -Larry

Apr 28, 2010 at 11:16 PM Larry Dietz

Yeah I tried it on -25 but it's just acting as normal. Weird, I don't know what's wrong!

Apr 30, 2010 at 10:03 AM Pure Phase

Do you have any other scripts attached that might be interfering? The C# mouse look script maybe?

May 01, 2010 at 04:04 AM Larry Dietz
show all comments (comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Are you using the First Person Controller prefab from the standard asset? If so try modify the "Sensitivity Y" variable of the script attached to the Main Camera instead of the one attached to the prefab itself.

Hope this helps.

more ▼

answered May 15, 2010 at 03:39 PM

Chuyannnnn gravatar image

Chuyannnnn
17 3 2 6

helped me a lot! Thanks :)

Nov 06, 2012 at 05:23 PM Saturnix
(comments are locked)
10|3000 characters needed characters left

I just removed the MouseLook script from the main camera and modified the values on the FirstPersonController directly. Worked a charm.

more ▼

answered Jan 26, 2012 at 01:02 PM

maciekish gravatar image

maciekish
31 7 7 8

I agree with this idea. There is no point in having a mouselook script on the camera and on the controller.

Sep 07 at 08:05 PM codeguyross1
(comments are locked)
10|3000 characters needed characters left

Disable the mouse look script for the camera inside the controller..worked for me..

more ▼

answered Dec 21, 2013 at 04:45 PM

shashank_agg gravatar image

shashank_agg
0

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x232
x56
x29

asked: Apr 28, 2010 at 10:05 PM

Seen: 5132 times

Last Updated: Sep 07 at 08:05 PM