• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ExTheSea · Mar 30, 2013 at 04:57 PM · animationfpsgunaimscope

FPS Aim Down Sights. Exact Position.

Hey guys.

I need some tips on how to do aim down sights in my FPS.

First let me explain my setup:

I'm making a multiplayer FPS. That's why my Player contains of a full human Model and several guns coming from one Blend file (Just want to make clear that it's not just two arms and a gun). When i animated the Model i also made Aim down Sights-Animation for every weapon individualy. I always tried to make it so that the Scope is in the exact middle of the Camera but when i got into Unity and tried to position the camera i noticed that some scopes are off.

Now my question is: How should i make it so that the scopes are always at the exact position without fiddling around in blender to make the scopes perfectly aligned?

I had some idea myself but i don't know whether there aren't any better alternatives.

  • Put an empty gameobject in the middle of each scope and then when i play the aim-animation lerp the camera to the position of the gameobject ignoring the z-axis.

  • Edit the Aim-Animation so that the camera will move where it needs to be.

Both of the methods i listed would move the camera which may look a bit weird for the player.

I would appreciate every idea, hint, ... whatever.

Thanks in advance, ExTheSea

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by TheNeoDoctor · Mar 30, 2013 at 05:23 PM

the best way is to not do it with an animation, if you do so, its hard to get the bullet spawn in place when ADS. the best way to do it is like this guy is doing it: http://www.youtube.com/watch?annotation_id=annotation_736261&feature=iv&src_vid=_YhahZPE9Mg&v=_YhahZPE9Mg#t=7m4.3s , then you will have no problems, but you may need to adjust some things in your game before you can get this to work.

If you really want to do it with an animation, let a small stick go trough the camera, then try to align it with your weapons scope at the point in the animation where you are ADS.

greeting and hope this helps

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ExTheSea · Mar 30, 2013 at 05:39 PM 0
Share

$$anonymous$$y problem with the method you meant in the video is that i don't only have a gun. I have an entire human model with an armature so that when you aim the left and right hand should follow the gun but the shoulders or the rest of the model shouldn't move.

If there would be a way to do it with a script i would of course prefer this but since there are no Inverse $$anonymous$$inematics in Unity from what i can tell i have to stick with animation.

If no one has another idea i propably have to do it with the small stick you suggested.

avatar image ExTheSea · Apr 03, 2013 at 05:34 PM 0
Share

Ok so i'm closing this question now because 1: nobody seem to know a better answer and 2; i already did it like TheNeoDoctor said and it worked fine. Thanky you again.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

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.



Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to bring reticles in different situations to the center of the camera? 0 Answers

Animations interupting Aim-Script 0 Answers

How to add gun to the model, as when it animate, the gun is dis-positioned. 2 Answers

Realistic Scope Effect? 1 Answer

Fps Controller fixed object (Gun) (Solved) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges