I am developing and FPS game and i was wondering how do you make it so that the hands and the gun move like in a real fps. i mean that the hands and gun move up and down and the body stays in place.
Answer by Kona
Feb 08, 2011 at 08:10 AM
It's called head bobbing I think and there's a quite good example of this at the unity wiki. :)
not exactly what i'm looking for. see i what to enable to hands to rotate freely but the body only rotates on the x axis so that he aims with his handes but the body still move in the direction of the camera.
Answer by VZdemon
Feb 09, 2011 at 08:33 PM
Answer by SIM
Oct 16, 2011 at 11:35 PM
Add mouse look to both the camera and the body. Set the camrea to only y-axis and the body to x-axis.
Answer by LittleBigBug
Jun 05, 2013 at 10:24 PM
Make the hands a child of the camera by dragging the hands in the hierarchy to the camera.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
3 People are following this question.
Rotate gun to mouselook
How do I make a gun project a particle?
how do i attach a gun to my character
Gun doesn't shoot straight?
How do i get the character to hold the gun?