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 /
This question was closed Dec 09, 2015 at 12:11 AM by Ksanone for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by Ksanone · Dec 08, 2015 at 12:01 PM · animationroot motion

How to setup transition for simple root motion animations?

Hi all. The unity tutorial below demonstrates how a basic hopping animation can be made with root motion -

https://unity3d.com/learn/tutorials/modules/beginner/unity-5/root-motion-authoring

The sprite moves in the x/y axes a very specific amount with each hop.

When I recreate something similar with the "hop" as the sole state/looping my object moves in a predictable fashion. My issue occurs if there is an "idle" state that transitions to the "hop" state (say if "hop" is triggered using the inbuilt trigger function when a key is pressed). In this setup there is inconsistent movement. In particular, the animation/movement appears to finish too early or too late, such that over multiple hops the object is higher/further forward than it should be at the end of each hop.

See screenshots for an idea - http://imgur.com/a/8ZXQD

My feeling is that it might be to due with the transitions but I've tested without luck so far. Transition into hop - no exit time, transition duration 0s (note the idle animation does not change the x/y position) Transition out of hop - Exit time enabled - set to 1.0, transition duration 0s

A solution would be to NOT use root motion and translate the object with script then animate on top, however I would prefer root motion for its ease of setting up movement.

Any help would be much appreciated.

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

  • Sort: 
avatar image
0
Best Answer

Answer by Ksanone · Dec 09, 2015 at 12:57 PM

My mistake was I adjusted the animated object parent's scale during the animation - by animating the scale the animation was proportionately bigger/smaller.

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

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Why apply root motion breaks physical control of my rigidbody Character, when everything is baked to pose except rotation? 0 Answers

Rotate a box 90 degrees with Root Motion 0 Answers

Root Motion acts differently in Animator Controller than in Import Preview 0 Answers

Animation transition doesn't preserve root transform XZ setting 0 Answers

Player Is Not Facing Right/Left When Root Motion Is Enabled 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