-
Notifications
You must be signed in to change notification settings - Fork 24
Scripts.MouseLook
##Scripts - Mouse Look
###What does this do?
This controls the camera based on controller or mouse movement.
###Who/What is this for?
This allows a player to control their camera/player, depending on where it's placed. This is used in 2 different ways in my setup. One for the root gameobject to move in the X direction and one for the camera to move in the Y direction. I never use move X and Y.
###Setup
Example Setup:
Parameter | Type | Description |
---|---|---|
Axes | Selector | What axes will this work on. X = Left Right Movement, Y = Up down movement |
Sensitivity X | int | How sensitive mouse/controller movement will be on this axis. |
Sensitivity Y | int | How sensitive mouse/controller movement will be on this axis. |
Minimum X | int | How far in the X direction the player is allowed to look. |
Maximum X | int | How far in the Y direction the player is allowed to look. |
Minimum Y | int | How far in the Y direction the player is allowed to look. |
Maximum Y | int | How far in the Y direction the player is allowed to look. |
Enable | bool | Whether this will work or not. Should always be ticked unless testing. |
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager