Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Navigatron · Jan 24, 2017 at 09:41 PM · animationrotationanimations360-degreesanimation editor

Animating: Object does not rotate as it should.

I'm using the Animation window to animate the main camera flying through my scene. This works well because the camera moves very smoothly and I can control the exact timing between each point, which is critical.

I've started by moving the camera around a sphere. Position works perfectly. However, at a certain point, the camera will do a 360 spin.

Imagine you're facing on a heading of 350 degrees, and you want to face at a heading of 10 degrees. Instead of turning to the right 20 degrees, the camera rotates to the left 340 degrees.

Worst case scenario, I re-arrange my scene into a hallway system in which the camera never looks back towards the start of the hallway. This option honestly disgusts me, but it might be what must be done.

Mid-case scenario, I add the 3 lines of code unity overlooked to the animation system. Is this even possible? How would I access the code?

Best case scenario, I am foolish and simply need to adjust a setting. What setting would that be? How do I get to it?

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

4 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by Navigatron · Jan 24, 2017 at 09:49 PM

Best-Case Scenario!

If anyone else is struggling with this problem, Here's what you need to do:

  1. Right click "Rotation" on the left side of the animation pane

  2. Hover "Interpolation"

  3. Select Quaternion

If by any chance after this you experience a shaking effect, select the keyframes in question, right click, and select "flat".

Comment
Add comment · Show 4 · 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 Cokemon · Jan 25, 2017 at 05:02 AM 1
Share

Hey!

I had the same problems, and your answer is great! Cant you mark it as the "best answer" since its pretty much on point? It will help other people as it is marked as answered and your answer will be highlighted. (See the dude who did try to help even tho u got it yourself? ;) )

Also, just because im curious... Are you using (Local)EulerAngles in this specific case?

avatar image MetalOxide · Jan 22, 2019 at 03:00 PM 0
Share

Thanks a bunch!

avatar image alpayoguz97 · Feb 27, 2021 at 10:16 PM 0
Share

Thanks a looooooot.

avatar image TheHemohscinProject · Apr 02 at 03:21 AM 0
Share

What is an animation pane, because all that you're talking about isn't in my unity

avatar image
0

Answer by theANMATOR2b · Jan 25, 2017 at 03:07 AM

Which version of Unity are you using? I remember a similar 360 animation bug that was fixed in either 5.3 or 5.4.

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 LyesBourahla · Feb 06, 2019 at 01:44 PM

@Navigatron this fixed the problem for me

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 Suscpetance · Jan 06, 2021 at 05:47 AM

make sure "apply root motion" is unchecked

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

151 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 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 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 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 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 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 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

Do animation rotations refuse to accept negative values? 2 Answers

How to make animations match movement direction 0 Answers

Procedurally generate AnimationClip at runtime 3 Answers

How do I Edit an Animation in the Animation Bar? 2 Answers

Animation lengths doesn't match 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