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 TheBombix95 · Aug 04, 2013 at 09:57 PM · lookathead

[SOLVED] Head and Neck rotation

Hi guys, i need your help with this annoying problem that is bouncing in my head. So i have a dinosaur model, created and rigged by me, that has a head (O.O no, really?!?) and 3 bones for the neck, now i want to put it inside of unity to work on a head movement system that i'll explain with an image (made by me, super detailed image) ![alt text][1] [1]: /storage/temp/13908-head≠ck.png

Ok, the body isn't a problem for now, what i want to do is that the head (the red bullet) looks at the mouse position smoothly (i know that is Input.mousePosition and other stuff with LookRotation), but the problem is the neck (made of 3 bones): the first attached to the body needs to turn in the same direction of the head but with an angle of 1/4 relative to the head, the second 2/4 rel to the head, the third 3/4 and the head...well 4/4 that is the look at function ! This system needs to work for both X and Y axis (i don't know if i'll make it for the Z too). Now i'm stuck at this point. Last question is: do i have to rotate the Head around the FIRST neck pivot, the one attached to the body or it has to rotate around it's own pivot? Thank in advance I Hope you guys can help me out ;) Bye

head≠ck.png (46.9 kB)
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
1
Best Answer

Answer by TonyLi · Aug 05, 2013 at 01:59 PM

Try the HeadLookController from the 3rd Person Shooter example project. It's pretty simple to set up: Add the script to your dinosaur, assign the bones you want to move, and set their weights. Or you can at least look it over as a model for writing your own control script.

Comment
Add comment · Show 3 · 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 TheBombix95 · Aug 05, 2013 at 04:06 PM 0
Share

Thanks a lot TonyLi, i'll give it a try and if it works i'll tell you so we can close this answer ;)

avatar image TheBombix95 · Aug 06, 2013 at 12:17 PM 0
Share

Ok guys the HeadLookController works good for what i'm doing, thanks TonyLi for the input ;) If no one needs help here, you can close here

avatar image dorpeleg · Aug 06, 2013 at 12:19 PM 0
Share

@TheBombix95 please mark the question as answerd (the check mark next to the up/down vote).

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

17 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

Related Questions

Rotating the upper body of a game character 1 Answer

Questions about Head Look Controller 0 Answers

Animated mesh looking the wrong way when using SetLookAtPosition 1 Answer

Face to camera but rotate around one axis 1 Answer

How to look at enemy 2d 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