• 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
6
Question by markfrancombe · Feb 13, 2013 at 08:55 AM · rigidbodycharactercharactercontrollermecanimcapsulecollider

Character falls thru to his waist

I have followed the Mecanim tutorial thru and now Im trying to get my own character into the system. Im falling at the first fence! After setting up the avatar, and adding capule collider and rigid body, I tweaked the cap collider to fit and hit play, and he fell thru to his waist. As you can see from the picture there appeasrs to be some default anim connected, even tho I haven't got that far yet. The character is a Mixamo thing, and as such has a greyed out anim there by default. Could this be causing it? How can I stop this? looks ok? alt text In the mud alt text

bob_mech.unity - mecanimtute - pc, mac & linux standalone.jpg (117.5 kB)
bob_mech.unity - mecanimtute - pc, mac & linux standalone-1.jpg (88.4 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

11 Replies

· Add your reply
  • Sort: 
avatar image
15

Answer by Emericanized · Feb 26, 2013 at 06:59 PM

Ahoy, Mark! Not sure if you're still having this problem, but I think I can be of some assistance!

You may notice at run-time that you get a yellow error in the log regarding the particular animation file you're trying to play. It mentions that you have a generic animation, but you're trying to apply it to a humanoid rig, so it discards it. (It seems to stick the character in the muscle test pose when it has nothing else to go on, which is what you're seeing in screenshot numero dos)

To Fix this:

1.Select your animation FBX files, and click on the rig tab in the inspector.

2.Change "Animation Type" to "Humanoid".

3.Change "Avatar Definition" to "Copy from Other Avatar".

4.Now in the "Source" field, choose the Avatar file linked to your In-world character.

5.Press apply!

I hope that does the trick for you, I know I had to spend some time digging around to figure it out when it first happened to me. Let me know if you're problem is resolved, it'd be nice to be able to contribute to a solution once, I spend most of my time asking questions :P

John S, Tech Animator

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 cillosis · Jun 16, 2016 at 01:47 AM 1
Share

You are my hero!

avatar image RocketFriday · May 21, 2018 at 05:18 AM 0
Share

Thank you so much!

avatar image RegionGames · Jul 28, 2020 at 03:31 PM 0
Share

thank you so much. lifesaver

avatar image
3

Answer by McDirty · Jul 04, 2015 at 09:52 AM

This is a super old thread, but I want to mention what the actual cause is... The Avatar your animations are referencing is not the same avatar as currently being used. They were set up with a different rig at some point and thus cannot place the pivot of the model in the appropriate place.

TL;DR make sure you are using the exact rig with the animations.

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 markfrancombe · Feb 27, 2013 at 07:49 AM

Hey John!

Thanks so much for your suggestion, Ill check when I Get to work. In definately missing something when it comes to mechanim. I can see its use as a cool way to blend. But dont understand how its a replacement for animation generally. On this point, Do you know if its possible to use LOOSE anim clips, as In ones that Are NOT embedded In a FBX? I have a good collection of motions for My character In the legacy system, but they are not attatched to meshes.

As a non coder, I am struggling too with the Control script, only having the BotControl script from the original tutorial for mechanim. Im hoping to rebuild this In PlayMaker soon, so I can implement MY needs. as that tutorial has picked a very strange method.

cheers for your help

Mark

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 Emericanized · Feb 27, 2013 at 08:22 PM 0
Share

Hey $$anonymous$$ark,

No problem, I hope that it solves your issue when you get back to it.

Regarding your other inquiry, I'm afraid I don't know! Im very new to $$anonymous$$ecanim as well, and any wisdom I have, I have stumbled into accidentally :P.

If I happen to stumble into it, I will be sure to let you know.

John

avatar image
0

Answer by Alexandros1313 · Feb 27, 2013 at 01:20 PM

Hi Mark, I've a similar problem. I've a charater animated by mecanim that should fall using ragdoll (so I've to deactivate mecanim during the fall). When the character impacts with ground, it works fine, but when animator is disabled completely, the character falls in the ground till his weist, like in your pics.

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 markfrancombe · Feb 27, 2013 at 02:16 PM 0
Share

$$anonymous$$aybe Johns suggestion will work for you? Im having to work on something else right now, and im not sure when Ill get back to this problem, and I have to admit that in the meantime Ive gone back to using the legacy system. I would really like to get to the bottom of this, as I dont want to suddenly find that system is depreciated, but for now, working with anim clips on a character triggered by code, without going thru Animator is a dream... sorry!

I would still like to know whether a loose anim clip can be used in Animator at all, or do they always have to be embedded in an FBX. I have lots of little anims that work for all my characters, but they are JUST anim clips.

For example, I used to tweak animations right in Unity, just by copying the anim clip and fixing it.. but now it seems that all animatin has to be done OUTSIDE of unity and imported as FBX, how can this be better?

As I said, Im sure Im just missing something!

$$anonymous$$Ark

avatar image
0

Answer by aarcoraci · Aug 14, 2013 at 09:49 PM

I was facing the same issue, hope this helps:

http://aarcoraci.wordpress.com/2013/08/14/unity-4-x-mecanim-working-on-your-own-projects/

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
  • 1
  • 2
  • 3
  • ›

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

25 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

Related Questions

Mecanim Rigidbody character slope limit issue 1 Answer

Problems with character controller 1 Answer

Why do CharacterController objects not come in different collision shapes? 0 Answers

Tweaking character movement 1 Answer

Rigidbody character controller issues 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges