|
Why is it that I can restrict the mouseY movement (min and max) in the mouselook script that comes with Unity in the standard assets, but the min and max of the mouseX does not work? Any help would be great, thanks!
(comments are locked)
|
|
AH! Just figured it out. Anyone who wants a quick fix, feel free to copy this code... Open up the mouselook script and change this...
To this...
I think it's a little ridiculous how they scripted this script by using variables that are never put into use. Hopefully one of the developers will get a glance of this and fix it in the next release :) Thank you for fixing the script it really helped!
Mar 16 '12 at 07:53 PM
PotatoOrgyLt
This is not a real fix as it's not possible to make a full rotation (like in classic FPS games) anymore. The camera will be locked to -360 +360 degrees.
Jun 01 '12 at 03:44 PM
lvictorino
No prob, Potato :) And the old script that I edited allowed me to make full rotations if I reset the rotation at max. The script was only for a menu.
Jun 24 '12 at 04:09 AM
alexmon27
thanks you just saved me 78.4 hours on my project.
Aug 06 '12 at 11:09 PM
gooncorp
THANK YOU!!!
Jan 06 at 02:08 AM
Slulego
(comments are locked)
|
|
It seems important to allow the camera to do full rotations on X axis if needed. Something like that will allow it ( if Hi all, IMHO it makes more sense to use this condition for the full rotation.
Dec 20 '12 at 08:15 AM
jeango
(comments are locked)
|
|
That worked a treat "alexmon27", thanks.
(comments are locked)
|
