I’m working on a prototype for my team, and I am basically at foundation. So far, I have support for moving my character and using the mouse to turn and look based on the X axis only. I have tried a few methods for implementing the Y axis, but with no luck. I was wondering if anyone could point me in the right direction for implementing a full 360 degree mouse camera that also rotates my character. Think Fallout 3 in 3rd person mode. If it is possible, I would also like to be able to toggle this functionality so that when I am in, let’s say, Mouse Look Mode, I get a cross-hair, my cursor disappears, and my character is rotated by moving the mouse, but when I turn Mouse Look Mode off, my character is only moved and rotated using keyboard keys. When Mouse Look Mode is off, I also want to be able to see my cursor so I can click on in game menus and such. Thanks in advance if anyone can help me.
hi there, maybe this fit’s your game: http://forum.unity3d.com/threads/169773-RELEASE-Zombie-Survivor-Game-Template
best regards
I’m definitely not interested in buying the entire template, maybe you can impart a little knowledge on the camera? That does look like the camera style I’m going for though!
Have 1 mouse look script attached to the overall parent of your character, and make the mouse-look script only active on the x-axis. then on the head of your character, add the mouse-look script only active on the y-axis. now that’s your 3rd person view. attach another camera to your head and set is to only move on the x-axis, and disable it. when you turn mouse look mode to off, disable the mouse-look script on the overall parent and enable the x-axis mouse-look script on the head of your character.
Take a look at the Angry Bots demo for some ideas on camera setup for third person.
I tried this method as it is the one that makes the most sense to me, but I didn’t get very far. I was able to get my character’s head to rotate on the Y axis, but the camera remains glued to the X axis. Any help there? I will admit, I don’t understand the concept of Euler angles very well, any info on that?
Get this free animated soldier from the asset store. I just used it for one of my sample scenes. It might have what you are looking for or give you some ideas.