- Home /
Gun moves around depending on camera angle
So I'm playing with Unity and tried to add a gun to my Main Camera (which is a part of the First Person Controller that comes with Unity). Problem is that depending on the camera angle the gun moves too. Look at this video to see what I mean:
http://www.youtube.com/watch?v=VXAq_oPgsWQ&feature=youtu.be
As you can see depending on where I'm looking, the gun moves too.
This is a bit of a problem so I'd appreciate some help.
NOTE: I think it moves around because the gun's pivot point is in its center, not the end of it where you "hold it".
Answer by Berenger · Jun 19, 2012 at 06:57 PM
You should use another camera for the gun. Create the camera, remove the audio listener, set the clear flags to depth only, the culling mask to whatever your weapon's layer is and place your weapon properly.
Thanks, I got it working. Without you wouldn't know what to do :)
Your answer
![](https://koobas.hobune.stream/wayback/20220613073013im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Problem with camera and gun in FPS game 0 Answers
Colliders become 'semi-enabled' when moved 3 Answers
Picking up ammo from the weapon on the ground 1 Answer
How do I make an object move? 3 Answers