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 Commander Quackers · Nov 23, 2013 at 05:30 PM · realisticheadheadbobbob

More realistic head bob? (Help)

Hello, I'm working on an FPS-style game and I'm in need of a more realistic head-bobbing script. The ones I have tried so far only move the player-camera up and down when moving. Does anyone have a head bobber that moves it more realistically? Like, not just up and down, but a little left-to-right?

I'm hoping for something somewhat similar to the camera movement in any of these following videos: http://www.youtube.com/watch?v=mbffk7IBBoo

more specifically, something like this, at 0:25 when the player runs. http://www.youtube.com/watch?v=ORXxo5GBnjE

Any help is appreciated, thanks! (I'm a new coder by the way.)

Comment
Add comment · Show 3
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 Commander Quackers · Nov 23, 2013 at 09:36 PM 0
Share

Sorry to bump, but, any help out there? Thanks.

avatar image LividRabbit · Nov 24, 2013 at 12:07 AM 0
Share

Its probably not a script, but two animations, one for idle and one while running.

avatar image NirielNabokov · Jan 06, 2015 at 11:32 AM 0
Share

Head bobbing is both realistic and not realistic at the same time. It is realistic because in real life our head moves up and down as we walk. However it is not realistic because in real life the brain corrects for that displacement so that we do not feel it. The brain uses feedback from the muscles and other sensors (balance in the ear for example) to make us unconscious of that motion.

Think of a similar thing: blinking. We could implement blinking by rendering a dark red frame every few seconds, but that would annoy the player. In real life, we do not notice that we blink, but we notice when a lightbulb flickers. This is because the brain uses feedback from the eyelids to inhibate the "light just turned off" neurons.

So when speaking of realism, we should wonder whether we are talking about physics, psychology, or a balance between the two. The choice is an artistic one.

1 Reply

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

Answer by Panik.Studios · Nov 24, 2013 at 12:33 AM

If you want realism you need to think realism.. When you walk your eyes/head don't bounce up and down independent from your body while your body moves forward?

It is animations you;re seeing here not script. And this question can only be asnwered properly if we know more about your end game is it multiplayer etc.

Assuming its not.. What is happening in this video....

The arms gun and camera are movin left and right up and down... In a arch (like a sin wave)

So Make an animation that makes there transform move in an Arch Shape! You will need to add play animation to your walk script.. And you should add the arms the gun and the camera together if you only want one animation!

Im sure you can do it all with scripts as well but that seems to me more work to achieve the same end goal!

Comment
Add comment · Show 1 · 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 Commander Quackers · Nov 24, 2013 at 05:19 AM 0
Share

Alright thanks I'll see if I can do it that way. I'm new to animation as well, the only part of Unity I'm really experienced with is terrains and some basic coding.

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

22 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Head Movement 1 Answer

Is there any way to alter the Gvr Head script for google cardboard to move where your real head moves? to be able to dodge oncoming objects? Any ideas where I can begin to tackle this problem or if its even possible. 0 Answers

Realistic Movement 3 Answers

Head bob ? JavaScript 1 Answer

Headbobber script in C#? 3 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