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 Josh707 · Dec 20, 2012 at 10:59 PM · animationrotation

Simple animation problem

I have an empty gameobject for items and I am trying to animate it. When moving it downward and rotating it to a sword-swinging like animation it rotates sideways halfway through the animation, then back to the rotation I wanted.

No animations I've made so far have done this, how do I ensure that the object follows a straight path and rotates directly to the desired rotation? I have tried setting the curve settings to flat and others but nothing has worked. Changing the rotation to negative values can make it a bit better but then it starts to spin.

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 originalNarf · Dec 20, 2012 at 11:33 PM 0
Share

So, to be clear, your animation is a translation along one axis, combined with a rotation around one axis? And you then you observe, in the middle of the animation, additional rotation around a different axis? Does your intended animation continue during this time, or is it paused in some fashion? Also, are you using the Animations pane, or scripts, to perform the animation?

avatar image Josh707 · Dec 21, 2012 at 02:23 AM 0
Share

Yes what you said is correct. It is only 2 keyframes from a 0,0,0 rotation and it moves diagonally across the first person view like you would expect a sword to. It turns sideways ins$$anonymous$$d of just rotating directly to the set rotation. I'm using the animation window and manually dragging the gameobject in the scene view.

Edit: It is translating and rotating on all 3 axes though. And now even having 2 keyframes at the exact same values has the gameobject rotate 360 degrees... What the hell?

avatar image originalNarf · Dec 21, 2012 at 06:46 PM 0
Share

I'd say "vector3" versus "quartenion", but you're using the pane, so that's out. I next feel like you have some animations you didn't expect - make a new scene and add things as little as possible at a time, checking to see when it breaks.

0 Replies

· Add your reply
  • Sort: 

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

Rotation in animation problem 0 Answers

Prefab Character position/rotation resets 0 Answers

Animation problem with rotation and position. 0 Answers

Do animation rotations refuse to accept negative values? 2 Answers

Manually animating using only rotations 0 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