• 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 Razouille · Oct 22, 2014 at 01:27 PM · rotationspritequaternioneuleranglesmotion

2D animation : problem with rotation interpolation

Hi everyone,

In a motion with 2D sprites, I got some key points with different rotations (only the z is changed). I want an instant modification, so I choose Broken with Both tangents : Constant, but 1 or 2 frames before a key point it makes a little interpolation before set the correct value, for example for 0 to 180, in the 2 frames before 180 the value is around 5 and 7. I tried both Quaternion and Euler Angles in the Interpolation property, it doesn't change anything.

Has someone a solution for this ? Or do I have do change the rotation in another way, maybe with a trigger which set the local rotation ?

Thanks in advance.

PS : sorry for my bad english

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 AMU4u · Feb 25, 2017 at 05:16 PM 0
Share

Have you tried normalizing the values before applying the rotations?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by algaib · Feb 25, 2017 at 06:14 PM

Click on 'Curves' and check there isn't anything weird happening before the 'constant' keyframe, if there is you can just drag things around in this window to your liking - the line should be perfectly vertical

alt text


capture.png (39.8 kB)
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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

28 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

Related Questions

Edited mouselook script rotation clamp not working 0 Answers

Find Opposite Quaternion 2 Answers

Rotation problem while dynamically changing animations 2 Answers

Quaternion distorts my object 1 Answer

Rotate to ground normal and steering direction for a Bicycle? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges