• 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 GTX Titan · Nov 22, 2014 at 02:41 PM · animatorblendermecanimfbxroot motion

Mecanim x and z plane root motion not working when importing .fbx, but works with .blend

Okay I have a simple character with numerous animations imported from blender. They worked correctly with .blend file but I ran into a problem with it and had to use .fbx instead. Now y plane root motion gets applied correctly but no x or z plane root motion is applied. Hierarchy of my character is this: Wrapper holding animator script, rigidbody2d and animator -> colliders2d as separate gameobjects and character model with rig. Animation which need x and z root motion are not baked into pose. Controller is applied to animator and controller has been tested to work correctly with the .blend file. What I see is all y plane root motion gets applied correctly I mean all of it, every animation. But not even 0.0000001 variation in x or z planes. Walking animation for example has loop time and root transform y bake into pose checked everything else are default and it plays nicely. Thank you in advance!

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 GTX Titan · Nov 23, 2014 at 09:20 AM

Okay I figured it out. Turns out unity rotates imported fbx files 90 degrees. Then animator rotated them making them practically unusable. Fix was to rotate the model in object mode and apply it (ctrl+a) in blender then in unity put import animations root transform rotation unchecked and switch to original(dropdown) from root node rotation.

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
-1

Answer by SethMeshko · Nov 22, 2014 at 03:16 PM

Is apply root motion checked on in your Animator?

Comment
Add comment · Show 17 · 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 GTX Titan · Nov 22, 2014 at 03:20 PM 0
Share

Well y plane root motion works so yes.

avatar image GTX Titan · Nov 22, 2014 at 03:24 PM 0
Share

And also the preview seems to work with root motion

avatar image GTX Titan · Nov 22, 2014 at 03:31 PM 0
Share

Hmm I noticed something very odd. Seems like unity turns some of my animations' roots 180 degrees on y-axis for some reason.

avatar image GTX Titan · Nov 22, 2014 at 03:32 PM 0
Share

The odd thing is it's not all. Just a few

avatar image SethMeshko · Nov 22, 2014 at 03:38 PM 0
Share

Sorry, what I am asking is, when you select your character in your scene and it loads into the Inspector, in the Inspector under the Animator is "Apply Root $$anonymous$$otion" checked?

Show more comments

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

27 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

Related Questions

Using root motion scripting for specific animations 1 Answer

Mecanim animation importing 2 Answers

Can I make character movement entirely with Mecanim's root motion? 0 Answers

Mecanim leaning issue 2 Answers

Blender animations to Unity problems 0 Answers

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