Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I put my weapon as a camera child, it works, but when i rotate my player it seems the weapon rotate a little too.

I'll attach some images so you can see it.

How the weapon is positioned

See the difference between those 2 images

enter image description here

As you can see, when i look up i can see a little bit more of the weapon and when look down to. I'm using the default 1st person script. Am i missing some important point here?

Regards, Alex.

share|improve this question
Watch this video and you can fix it. It provides detailed explanations and is good for anyone that are making a FPS game or new to Unity… – Xeon Apr 24 '13 at 9:21

Usually assign a child to camera is a bad idea. It will work, of course, but can give a little headache in your hierarchy. Try to create a new empty gameobject and assign camera and the weapon to it (even if i dont like that main camera is a child).

For your problem, i simply cant get it and your images are not clear (i didn't see anything wrong, remember that u are in First person and the prospective). If an object is a child of another one, the child object will just follow the rotation/transform update of the parent.

P.s. Try to write your own character controller, even if people say that you can use Unity without knowing programming... well, it's a lie :)

If you need more help, please explain better your problem.

share|improve this answer
Hi, i develop in C for 7 years, but my mathematics background is bad. The problem is the weapon rotates a little more, as you can see the weapon shows more when i move up/down, it should remain in the same "rotation", i think its a slerp (sorry if i said something wrong)... i compared with COD weapon rotation and the weapon don't show more or less when i look up/down, but my weapon does that. – demonofnight Apr 24 '13 at 11:17
i dont think that your weapon show more or less, it's just a question of prospective. Maybe you can have a better result with a custom shader, but im not an expert in this sector, sorry. – Max Apr 24 '13 at 13:51
In the second image i can see more of the weapon, probably it rotated, i wanted to see it always "the same". When i rotate it seems the weapon rotates a little more – demonofnight Apr 24 '13 at 18:19
I dont know wich camera's behaviour there is behind the standard first person controller, maybe u can start from there and check if it do some camera translation/rotation – Max May 6 '13 at 9:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.