• 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
7
Question by NoBullIntentions_P · Aug 01, 2016 at 07:09 PM · animationrotationquaternionseuleranimation editor

Animation Window Rotation - Wrong Direction

I've just started using the Animation Window, so excuse me if this is something simple. I'm making a camera rotation, following along with the tutorial here :

https://unity3d.com/learn/tutorials/topics/animation/animation-view?playlist=17099

I rotate the camera around 90 degrees between two keyframes. But the animation it creates rotates around 270 degrees in the opposite direction. It's as though it's using euler values instead of quaternion for the animation. I searched for that though and found a reply indicating that the animation window has been using quaternions since Version 2.x of Unity.

At the moment, I'm using the dopesheet, not the curve editor. I just want to "block out" the animation before I go into the curves editor and fine tune it. And this is a long way from being "roughly" what I wanted.

Comment
Add comment · Show 1
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 vintar · Aug 01, 2016 at 08:26 PM 0
Share

I think this is marked as fixed in the latest patch.

1 Reply

· Add your reply
  • Sort: 
avatar image
9

Answer by NoBullIntentions_P · Aug 02, 2016 at 12:04 PM

It took several hours for this to be moderator-approved so I've already figured it out, Still, I thought it might be better to answer it myself rather than delete it.

If you right click on the property (in this case, rotation) in the property list on the dopesheet, you get a selection menu where you can choose from euler angles, euler angles (quaternion approximation) and quaternion under "interpolation." By default, it's set to euler.

On the face of it, I thought it was odd to make euler the default but I guess it's for people entering specific values and most people find it easier to think in euler angles. So that's how you change from euler to quaternion if you need to.

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 QuentinLG · Feb 08, 2017 at 12:03 AM 0
Share

Awesome, exactly what I was looking for! Thanks :)

avatar image SergioAGomez92 · 5 days ago 0
Share

Thank you! I was having the same problem, cheers

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Need help with storing Rotation in a Quaternion 1 Answer

Trouble Spawning Bullets with proper rotation 0 Answers

Animating: Object does not rotate as it should. 4 Answers

Can't Accurately Read Rotations 0 Answers

Issue with Slerping 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