- Home /
Camera on Body going crazy
Hi again! I am making a better graphic for the first person controller by getting a rigged humanoid instead and applying animations when necessary, but I have a problem. When I press and hold 'W' the walking animation plays, but the graphic moves faster than the camera, and goes in front. When I turn the camera, the graphic still, but does a massive turn, as it is always in front of the camera. When I try to attach the camera to the graphic, it still makes huge turns, and the walking is faster than I want. If I attach the camera to the actual rig(Hips, Spine, Neck, Head, etc) not only does the camera violently follow with the animations, but the graphic STILL makes massive turns. If you don't know what I mean, watch this video: http://www.youtube.com/watch?v=5dztW9RBvKE
Answer by MarkD · Nov 01, 2013 at 10:15 AM
Child the complete rig under the character controller, and make sure your rig is not moved by a script or animation script, you only need the animation for walking, not the movement, because the controller will do the moving.
What do you mean? Character Controller is a component. How do I child something under a component?
how do you get the controller in the game... by placing it on an empty object, you child your rig under that object. Which should be your player, also unity provides a complete setup player model that uses the character controller, so you could child it under there.