Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Deeeds · Mar 18, 2018 at 02:12 AM · animationcurvehandles

Create strong animation curves: HOW?

,In any of the animation editors that influence properties, how do I create a curve of this sort:

alt text

UPDATE:::

It seems this is a significant limitation of Unity’s timelines and animation processes.

They haven’t considered how animators actually work with “bezier” to construct their desired motions. Instead, they’ve done what’s easiest in terms of mathematics, and user interface, then told the marketing department to brag about having handles in the timeline editors. Yes, technically they’re handles, but they’re much more limiting than their equivalents in all other forms of commonly used animation software. It is, to some extent, false advertising to call these handles and harken to the manner they’re expected to be used in all other software.

Here’s a similar question, suffering from the same problem/limitation:

https://answers.unity.com/questions/623318/how-to-convert-cubic-bezier-curve-into-animationcu.html

screen-shot-2018-03-18-at-123421-pm.png (41.8 kB)
screen-shot-2018-03-18-at-123421-pm.png (41.8 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
0

Answer by Bunny83 · Mar 18, 2018 at 02:51 AM

You can't get a 90° tangent in Unity's animation curve as it's based on the tangent angle. Even the interpolation is based on cubic bezier curves you can not specify the control points manually, just the tangent. The actual control points will be calculated from that angle based on a 1/3 interval between the keytrames. If you want to know how they are calculated see my answer over here.


As i said a completely vertical tangent isn't possible. It will result in an instant jump answer.


I you could specify the control points manually the curve wouldn't represent a mathematical function anymore as the curve could curve back in time which wouldn't make any sense. Why do you need such a steep increase? You most likely won't even notice that first part as animations are sampled in time intervals.

Comment
Add comment · Show 7 · 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 Deeeds · Mar 18, 2018 at 03:42 AM 0
Share

This is a common curve in animation editing. After Effects, 3ds $$anonymous$$ax, $$anonymous$$aya, etc all provide the ability to edit control points and their handles in this manner, as it creates a very desirable style of animation.

$$anonymous$$athematically, these are possible, as curves. And also quite common in frameworks like Core Animation and many other places where curves based on simple equations are made.

Here's an example of an online tool that generates exactly this type of curve and what's needed to use it in Core Animation: http://cubic-bezier.com/#0,.7,.05,1

avatar image Bunny83 Deeeds · Mar 18, 2018 at 01:08 PM 0
Share

Ok, maybe you did not read my answer carefully. $$anonymous$$y first sentence was:

You can't get a 90° tangent in Unity's animation curve as it's based on the tangent angle.

No matter how much you complain about that, it won't change this fact.


Yes mathematically you can create a curve like that and it would still be a vaild function if you restrict the control points in the x axis (so the x of control point one can never be lower than the starting point and the x of control point two can never be larger than the end point). However as I said Unity does not store the position of the control points but just the tangent of the angle.


This seems to be a typical case of "A, B and C do it this way so D should do it the same way". Just think about file formats. Some do not support animations at all and nobody complains. Some do not support any kind of tangents at all and just provide keyframes with are supposed to be interpolated linearly. With sufficient keyframes you can approximate any curve to any desired resolution. The same holds true for Unity's animation curves. Live with it or find a third party solution. $$anonymous$$aybe Unity provide a different way in the future. However this is very unlikely since the AnimationCurve is used in many different components and modules in Unity.

avatar image Deeeds Bunny83 · Mar 18, 2018 at 02:09 PM 0
Share

Unity are focusing on this. It's a feature point of the 2018.1 beta, that I'm using. Hence the reason I'm asking... how do I do this in Unity? It's there, somewhere, I simply can't find how to use it. Unity calls this weighted tangents. From this page: https://unity3d.com/unity/beta/unity2018.1.0b7 Animation: Added weighted tangent support to AnimationCurve. You can see it in this video: https://youtu.be/fRH$$anonymous$$B4$$anonymous$$WSFA just after the 2 $$anonymous$$ute mark.

Show more comments

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

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

Mecanim ik curve 0 Answers

The unexpected noise of animationCurve when making it with a script? 0 Answers

Animation Events and Mecanim 2 Answers

Animating Light Intensity with Animation Curve 1 Answer

Deleting animation curve with editor script 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