Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by djdopes562 · Mar 02, 2013 at 11:31 AM · cameramecanimshooterpersonfirst

Mecanim Fps Shooter?

Is it possible to use unity's new mecanim system to create a fps shooter? I have many great ideas but I'm having trouble with the camera staying with the character while it is in motion.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MadJohny · Mar 17, 2013 at 11:56 AM

http://www.youtube.com/watch?v=uzFSd0hurzg, but idk how it's done

Comment
Add comment · 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
0

Answer by Chronos-L · Mar 17, 2013 at 12:16 PM

Is it possible to use unity's new mecanim system to create a fps shooter?

Yes, absolutely. Mecanim is a very powerful animation system, you can make some killer FPS games using Mecanim.


I'm having trouble with the camera staying with the character while it is in motion.

Head-cam, or eye-cam. Just parent the camera to your character's head, or any bone that seems appropriate to you.

If you are doing FPS using Mecanim, you need to tweak your animations to make sure that your character's head (or any bone the camera will be parent-ed to) stays relatively steady and level most of the time.

Comment
Add comment · Show 6 · 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 MadJohny · Mar 17, 2013 at 05:07 PM 0
Share

Since we're talking about mecanim fps can you tell me in a fps with full body should I model the head? or just arms, body, legs and make a bone atached to nothing? I think head would be great for some effects like buildings mirror's.

avatar image Chronos-L · Mar 18, 2013 at 12:39 AM 0
Share

$$anonymous$$odel the whole character, for these reasons:

  • You can reuse it for another game

  • What if later you would like to extend it to a multiplayer game? You are better off with a complete model from start ins$$anonymous$$d of replacing and re-tweak it halfway through the development

  • You got this one: mirrors

To be honest, even if you have no plan for all the above reasons, just the thought of looking at a headless model in edit mode during the whole development will make you think twice on using a headless model.

avatar image MadJohny · Mar 18, 2013 at 09:36 AM 0
Share

I actually tough on a multiplayer, ok thanks for the awser, now I just need to get a good position for my camera but in here http://www.youtube.com/watch?v=uzFSd0hurzg the camera rotates with animations, will that happen if I just parent the camera with my head? or will it look strange because the camera maybe won't rotate and because of that everything would be weird

avatar image Chronos-L · Mar 18, 2013 at 10:51 AM 0
Share

If you just parent the camera to your head, it will tilt whenever your character's head is tilted, which will be a bit dizzying for the player. What happened in the YouTube video is the camera is parented to a parkour-character (which was meant for 3rd person view).

In real life, when you tilt your head, somehow your brain are capable of re-tilt the image you saw back, maybe by sensing the tilt using the ear. You can try this by laying down on your side and try to watch TV, and you will have little-to-no problem with that. But when you try to look at picture in your PC/laptop rotated clockwise/counter-clockwise by 90 with your head not tilting at all, you will have a hard time.

$$anonymous$$y point being, you will get some cool and insane looking view when you just parent the camera to the head. However, it will be quite dizzy and uncomfortable for the player. Furthermore, you are making a FPS, a tilted camera view will not be suitable for that.

You will need to your camera up a notch. You need to position-parent the camera to the head, but you need to calculate the proper orientation of the camera by yourself.

Your camera should rotate in 2 axis: y-axis for left-right, and x-axis for up-down. You can either lock the z-axis fully (no rotation at all), or you can soften the effect of the z-axis rotation (so you will get a subtle tilt effect).

avatar image MadJohny · Mar 18, 2013 at 11:09 AM 0
Share

I didn't said what kind of fps it was, I want to make a fps like mirror's edge, so move is everything in the game, accuracy is not needed at all, the only weapon you will probably ahve is a glock and $$anonymous$$AYBE a sniper further on the game, it's nothing like Call of duty or battlefield where percision is basically everything

Show more comments
avatar image
0

Answer by djdopes562 · Mar 18, 2013 at 09:15 PM

thanks for the feedback guys, also if you wanted to make the head not move you could use the ik rig to make it not move. Also when I parent the camera to the neck or head it says preview cam is in bad postion/rotation. Thanks!

Comment
Add comment · 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

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.

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 make a world model apear seperate from a player model 0 Answers

Rotate charcter with camera? 1 Answer

shooter adjust where fired 0 Answers

First Person Shooter Prefab not working 0 Answers

How do I make my fps character grab objects? 4 Answers


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