- Home /
Making an object move with the camera
For some reason, when I child an object to my FPS controller's camera it doesn't move up and down, only left and right. Has anybody else encountered this before?
Answer by aldonaletto · Jun 11, 2011 at 03:33 AM
The standard FPS controller has two MouseLook scripts, one assigned to the camera and restricted to rotation in the vertical plane, and other assigned to the character and restricted to rotation in the horizontal plane. These restrictions are defined in each MouseLook by the Axes field shown in the Inspector. If you child an object to the camera, it will move only in the axis enabled by Axes. Check this field to know which axis is enabled.
Your answer
![](https://koobas.hobune.stream/wayback/20220612102912im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Diablo 3 like move to mouse (w/o click) - efficient? 1 Answer
How to freeze Z axis rotation in code? 4 Answers
Converted MouseLook from C# to Java problems 2 Answers
Unity Standard Assets FPS Controller Camera able to rotate past limit specified 0 Answers
How to make camera position relative to a specific target. 1 Answer