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 /
  • Help Room /
avatar image
0
Question by Riderfan · Nov 18, 2015 at 07:05 PM · physicscharacter movementmove an objectroot motion

Rootmotion chracters floating off ground

Hello.

I've been struggling with this problem for several days now. Searching the forum, I see the question has been asked before but the few answers there are don't seem to be doing anything. Given that the topic keeps coming up, I hope that one of the Unity devs can shed some light on the issue.

Characters that move seem to float off the ground as they move. With some settings they rise up off the ground as they walk/run, in some cases the float up into space as they stand idle.

For the time being I'm using stock animations that came with unity - Idle, Walk, Run. I've also tried this with the stock 'Ethan' character as well as my own. The problem exists with either (although seems more so with my own character).

I've tried the following;

  • Bakeing animations to the Y on the Original, on the feet, and on the Centre of Mass.

  • I've tried with and without RidgidBody. When enabled the mass is set at 82kg (around 180lbs).

  • I've tried with Gravity on and Gravity off.

  • I've tried using Capsule Colliders (they usually just fall over flat on their face yet still animate).

  • I've tried using Box Colliders (with similar problems to Capsule).

  • I've tried with no collision system at all (although I will absolutely need one).

  • I've tried using the Normal Update loop and the Physics Update Loop (I need the physics one really).

  • I've tried characters that are scaled on import and those that are not scaled on import.

  • I've tried my own characters and rigs and the stock Ethan character and rig.

I've tried turning off root motion and processing the movement via script OnAnimationMove() and that lead to even more unfortunate yet hilliarous results (characters would lean backwards while moving, it looks like they were on an Olypmic Skeleton run).

I'm not sure if it makes a differance, but all characters are intsantiated at run time via;

 //Create the copy of the player mesh
 GameObject prefabMesh = GameObject.Find("PlayerPreFab");
 
 //Instantiate a new copy of it
 mPlayerMesh = (GameObject)GameObject.Instantiate(prefabMesh, new Vector3(), Quaternion.identity);

This really shouldn't make a difference but I include it for sake of completeness. There's no way to avoid doing this. I have to be able to create these characters at run time so maybe there's some setting I don't know about during the creation process?

The thing I have noticed is that it only seems to happen to characters that have moved from their original place. If a character only animates the Idle, and never moves, they stay in place. But as soon as they process any anymation that moves them, the problem occurs, even if they go back to the Idle state at some point.

Please see attached image. alt text

I guess I'm doing something completely wrong, but I I can not get my characters to keep their feet on the ground.

Any help or suggestions would be appreciated. This is a blocking issue for me.

thanks David

image1.jpg (246.3 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

0 Replies

· Add your reply
  • Sort: 

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

42 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

Related Questions

How to attach a sphere to an object at a constant relative position, but so that it can be influenced by external physics rotations? 0 Answers

Rigidbody character cannot move once parented to platform 1 Answer

Make character follow cursor movement and detect collision 0 Answers

Recreating 'skin width' functionality on a rigidbody? 0 Answers

Physics with generic root motion 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