- Home /
Trouble adding a fixed camera to a third person controller.
Hi guys,
I am relatively new to unity. Currently I have a third person character with its own third person camera. What I wish to do is add a fixed camera behind my Character so that it has an extra +Z axis offset and I can look up a hill on my terrain throughout the gameplay. I have created an extra Camera GameObject and made it a child of the 3rd person character. I have positioned it the way I wish to but now the WASD controls control the camera's orientation and not the Character's motion. I wish to be able to control the Character's motion with these controls and still have the fixed camera follow my character.
Any help is greatly appreciated. Thanks!
I don't understand what you mean. How is that possible that your camera is being changed where your control script is attached to the character. Basically, any child game object would follow the parent's orientation.
If you want to keep the offset and the orientation, do not make the camera a child of the Character. Ins$$anonymous$$d, make a camera follow script. You can check out Roll a Ball tutorial on how to do that.
Answer by Paul-Sinnett · Nov 11, 2017 at 08:58 AM
Are you sure? If you've attached a camera to a 3rd person controller, when you push 'A' the character will turn to the left. And if you've attached the camera to the character it will rotate around it to the right to stay behind the character.