Hello All,
I am trying to make a 3rd person controller using the standard assets and it’s not working out the way I would like. I am now using the Multiple Purpose Camera Rig as this is the closet thing I can find to what I need, but, this does not allow any up/down movement for the camera and the game feels stilted without it :(. The thing is I can’t find any information on how to use a 3rd person control with a mouse control to move the camera, like the First person controller has.
Please note, I’m not looking for anyone to write a controller or code, just some information to point me in the right direction, or a tutorial series that discusses this or even worst case scenario a store bought asset that will handle the task.
To anyone who can help here is a big thankyou in advance!
Regards.
There shoudl be a component in standard assets called mouse look. Try adding that to your camera with the axis set to Y and it should allow your up and down mouse motion as well 
Thanks for taking the time to reply it is most appreciated :).
Right, I tried adding that script to the camera component by clicking the “Add Component” and typing the name of the script directly and it didn’t show up. I thought that was a bit strange. So then I tried moving the script itself and dragging it to the component, unconventional but it’s worked sometimes. However when I did that this message appeared:
Now that is above my paygrade and I have no idea what that means. So then I tried adding a new script calling it whatever “literally” and copied the contents of mouselook into this new script changing the class name to whatever and the following appeared in the Inspector:
So can you think of anything else that might help getting this errant script to work and getting some up/down motion happening?
Regards.
Yup
There must be some compile errors causing you problems. Take a look at your console there must be another error being reported.
When this happens Unity can’t compile and thus any script changes are not loaded yet so it makes sense your new script wont be loaded and can’t be added yet
You are probably right, but, try as I might I cannot find any other “errors” with the code! And there are no warning either :(. The only thing coming in the console are print statements used for error-checking.
Best bet then is to ensure everything is turned on in the console (since you can filter warnings etc by clicking the icons). Then restart Unity and send us a picture of what you see in the console once its finshed booting.
Your response gave me some ideas so this is what I did.
I was trying to find a project in which mouselook.cs was working as I knew I had one somewhere, it was a project that I had used Unity 4.6 for a never completed FPS everything worked fine, so, I went to replicate the FPS controller as it was in the project and mouselook.cs never appeared anywhere although the mouse was moving around just fine. Just for kicks I tried adding mouselook.cs as it is part of the standard assets but again it wouldn’t load. So, it looks like Unity had modified the FPS controller with a different script for the mouse in which mouseLook was no longer a feature, or even worked in Unity 5.
So, I tried adding in that newer script to the camera and it worked to a certain degree which was initially exciting. The mouse would turn the screen, eventually the camera rig would turn, but, you could only walk/run in a straight line! When I tried to move/run in anything else the animation reminded me of something from “Mass Effect Andromeda” with the crab walk on stairs - it was hilarious
. Then also for kicks, I modified the script to use it the 3rd and 4th axis on the Right analog stick and it was more of the same except a little worse - lots of breakdancing :p. So, this is way above my pay grade.
Unless I can find a proper controller system on the Asset store this is something I’ll have to put off for some time. I was hoping to get the controller working a little like my favourite game of all-time “For Honour”. Love that game
.
Thankyou for your input it allowed to make some headway.
Regards.
1 Like
No worries glad it helped in some way! Yeah controllers are pretty tricky to get right, but its so core to your game it has to be perfect
Worth considering a pack for sure, I would offer advice but I typically work with the standard assets to make my own
1 Like