• 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 uniMaxi · Jan 08, 2018 at 04:30 PM · rigidbodyanimatorcharacter controllerroot motionmotion

Vertical root motion and rigidbody / character controller

I have created a simple motion in Unity that moves 5 points up the Y axis over a second and then moves back to original spot and want to use it as a basic motion for jump prototyping.

T$$anonymous$$s motion works fine on objects that don't have Rigidbody or Character Controller, but simply doesn't work on objects that have either. Though, if i add X and Z axis movements to the motion, they work just fine. I imagine t$$anonymous$$s is somet$$anonymous$$ng to do with gravity, but since t$$anonymous$$s motion is created in Unity it has no animation import tab where i can change the gravity settings.

Any way to make it work?

EDIT: if the rigidbody is set to kinematic, the vertical root motion works. Kinematic rigidbody is way too far from what i need, though.

EDIT2: discovered a piece of downright weird behaviour. A character controller in itself has no gravity. However, once i add Animator and enable root motion, t$$anonymous$$s in itself - even with animation having no root motion whatsoever - causes gravity to be applied. So apparently Animator has decided that it has somet$$anonymous$$ng to do with gravity and there is no good way to control it.

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
0
Best Answer

Answer by osybear · Jan 08, 2018 at 04:50 PM

Reset the Animator Component and try these few t$$anonymous$$ngs.

  1. Enable Apply Root Motion

  2. Update Mode Animate Physics.

alt text

Comment
Add comment · Show 3 · 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 uniMaxi · Jan 08, 2018 at 06:23 PM 0
Share

Didn't help (

avatar image osybear uniMaxi · Jan 08, 2018 at 10:08 PM 0
Share

Just tried it myself. It does work as it is changing the values but at a very minuscule level.

avatar image uniMaxi osybear · Jan 09, 2018 at 07:54 AM 0
Share

Seeing as how you got a minor change in values, i tried it again with a 100 point vertical motion, instead of 5 points, and it worked. Seems like the motion needs to work against gravity. While i'm not a fan of using motion to work against gravity, this should suffice for my purposes for now. Thanks!

avatar image
0

Answer by Bitcore · Dec 18, 2020 at 04:00 PM

https://forum.unity.com/threads/how-to-fix-animation-gravity-weight-issue-with-root-motion-solved.442342/

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

108 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

Related Questions

How to make root motion in cat .fbx drive movement? 1 Answer

How does the Animator drive Rigidbody with root motion (in detail)? 1 Answer

Unity Root motion Offesets object on Y axis 0 Answers

Animator.deltaPosition and Animator.deltaRotation always returning zero; 0 Answers

Animations with no Y position changes gets affected by Rigidbody Gravity 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