Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 MLM · Jan 01, 2014 at 08:30 PM · animationrigidbodycollideranimatormecanim

Animator component makes Character fall a bit

I am doing some Mecanim animation but I am getting stuck. The animator component makes the model fall a bit (lets call this "the fall"). If I disable it, then the character does not fall.

Check out the Video (YouTube) explaining the issue.

Animator Component

If I add a rigidbody and a capsule collider (see image below for structure). It completely falls through the floor if the "the fall" makes the bounds go below the plane. If I disable the animator component and leave the rigidbody and collider, the models feet stop on the floor plane (how it should act).

The Colliders empty has a mimic child script that is attached to the spine but this has no effect and is the same as putting the empty as a child of the spine.

Structure

The animator controller just has a empty state in it set as default.

What in the animator component makes the character fall?

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

3 Replies

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

Answer by MLM · Jan 03, 2014 at 02:34 AM

TLDR;

  • Don't use a empty state in your Animator Controller

  • Use a static Idle animation as your basic "empty" building block state

The empty state will cause your character to fall.


The problem enlies in having the empty state in the Animator Controller or in my case, not generating a separate avatar for the idle_br animation.

I had a separate fbx (of the same model) with the idle_br pose and had the Avatar Definiton set as Copy from other Avatar, the value being my normal Master Chief generated avatar. I thought it was logical to copy avatar since it is the same model, rig, and bone structure. Instead you should Create From This Model and configure a new avatar.

If you take the robot model/rig for example from Unity's Mecanim tutorial and create the Mecanim avatar, automap, and enforce pose. Then make a new Avatar Controller with a empty state and set it as the animator controller. Then you will see the robot fall and go into a knees bent and arms out pose.

Robot empty animator controller pose

Comment
Add comment · Show 5 · 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 Narmer · Mar 05, 2014 at 11:29 AM 0
Share

Hi, I still do not get it. I have the same problem, but what exactly you changed?

avatar image MLM · Mar 05, 2014 at 04:26 PM 0
Share

@Narmer Check out the updated answer. Put an actual idle animation for that character in. Not a empty state. Consider voting what you thought of the question and this answer.

avatar image m-Stratikopoulos · Mar 13, 2014 at 11:11 PM 0
Share

I still don't get it. I face the same issue and it's driving me mad.... Please, I put the idle animation they provided from the example and my character falls and stays like that.

avatar image abchiptop · Mar 14, 2014 at 01:04 AM 0
Share

I just had this myself. I made the default animation of my character loop 0:01 to 0:01.1

then transition to and from other animations. If you don't have the idle set, ie it is entirely empty, it falls.

avatar image Fr2 · Jun 18, 2016 at 09:17 PM 1
Share

Solved the problem for me, many thanks! I lost a couple of hours on this one... I notice that only the top layer needs to have an idle state - other layers are O$$anonymous$$ to have an empty state.

avatar image
0

Answer by Kyieon · Jan 02, 2014 at 11:39 PM

Try making sure that the mimic child script does so in the LateUpdate() method.

It looks like the sort of problem that having ApplyRootMotion enabled would cause but you clearly dont have it on so try enabling it just to see.

Also how do you calculate your gravity? If it is calculated using the model there might be a problem.

Comment
Add comment · Show 1 · 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 MLM · Jan 03, 2014 at 02:38 AM 0
Share

Thanks @$$anonymous$$yieon for the answer. I did mess with all the settings which includes ApplyRoot$$anonymous$$otion before posting but a good note for others. Gravity was just a rigidbody but I have moved onto a normal character controller setup. Check out my answer to see the problem and how I fixed it.

avatar image
0

Answer by kingqwerty · Jan 04, 2015 at 03:19 PM

Try right click inspector -> debug -> unclick Allow Constant Clip Sam..,

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.

Follow this Question

Answers Answers and Comments

24 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

Related Questions

Blending between frames in the same animation (fake stop motion) 2 Answers

collider animation problem 1 Answer

Mecanim and Ragdoll Issues? 2 Answers

Problems with Animator(Mecanim) 1 Answer

Animate Physics. Moving a rigidbody with an animation 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