Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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
1
Question by jacksmash2012 · May 25, 2012 at 05:55 PM · slerp

is it possible to do non-linear rotation interpolation (using Slerp)?

I have a model rotating between two rotations using Quaternion.slerp, and it works just fine. THe problem is, the model is a person and the movement looks a little robotic. I was wondering if it's possible to use Slerp in some way that the rotation isn't linear, i.e., perhaps it is slower at the beginning and end and faster in the middle?

Thanks :)

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

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Bunny83 · May 25, 2012 at 06:13 PM

Slerp is the short from of "spherical linear interpolation". That means the interpolation itself will be linear. However you can use a non linear t value to drive the slerp. If you move the t value linearly from 0 to 1 it will be a linear movement / rotation.

You can use a Hermit curve for example.

 //C#
 float Hermit(float t)
 {
     return 3*t*t - 2*t*t*t;
 }
 
 // Where ever you use Slerp
 rotation = Quaternion.Slerp(from, to, Hermit(t));


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 whydoidoit · May 25, 2012 at 06:01 PM

Take a look on my blog at the SmoothQuaternion - it allows a couple of modes like smooth and damp.

edit
Link replaced with archived link since the blog / domain does no longer exist.

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 Envans · Nov 24, 2020 at 04:07 PM 1
Share

Dont click on this link. It lead to a "Phone Verification" that if you provide your real phone number charge you 25 $ per month ( it says it in small writing on the bottom of the page but I have my browser at 200%)

avatar image Bunny83 Envans · Nov 25, 2021 at 06:07 PM 0
Share

I've replaced the link with a link to the archived page

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

doing force and spin on a gameobject when clicking on plane. 2 Answers

Problem with Lerp/Slerp 1 Answer

Slowing velocity in Rotation? 1 Answer

Rotate object towards mouse cursor when click 1 Answer

Issue With Rotation on Key Press 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