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
0
Question by carnivoris · Jun 02, 2015 at 02:16 PM · animationmecanimriggeneric

Non-humanoid Rig Gets Mangled in Mecanim

I'm trying to animate a cat model for my game and I'm having some issues. First off, my spine seems to be extremely twisted in Unity, but it's not twisted in Blender. Here's what that looks like:

Twisted Cat

Also, it plays my idle animation, but it doesn't seem to want to play my walk cycle. It seems as though the state machine doesn't recognize that my script is setting the speed parameter

 void Update () {
 
         if (isCat == true)
         {
             speed = 10.0f;
         }
         else
         {
             speed = 5.831f;
         }
         // WASD forward/back & left/right movement is stored in "direction"
         direction = transform.rotation * new Vector3( Input.GetAxis("Horizontal") , 0, Input.GetAxis("Vertical") );
 
         // This ensures that we don't move faster going diagonally
         if(direction.magnitude > 1f) {
             direction = direction.normalized;
         }
 
         Debug.Log("isCat? " + isCat + " speed: " + speed);
         anim.SetFloat("CatSpeed", speed);
 
     }

I'm doing something a little weird in this case, because my game switches between a cat and mouse model. I've got the meshes for the cat and mouse set as children of an empty game object and I switch between them according to actions the player might take in the course of the game. I wonder if this is an issue when playing animations. My animator is set on the parent gameobject and I have the correct avatar set there. I'm not currently animating the mouse gameobject, only the cat. I'm guessing that because the idle animation is playing, that's not an issue, but I wanted to ask to make sure.

Here's an image of my animator state machine

Mecanim state machine

I am importing the rig as a Generic rig and I've got the root node set properly (I think). I'm not sure how to see what the root node is in Blender, so if anyone could give me a hint there, it'd be appreciated. The first bone I created is currently set as the root node, but I'd still like to explicitly make sure there's no issues in Blender.

funkycat.png (101.4 kB)
cat-state-machine.png (75.8 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

20 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

Related Questions

Is retargeting available for generic rigs? 1 Answer

Mecanim problem 1 Answer

Generic rig creates sliding feet? 0 Answers

Mecanim: Importing raw rigs with no mesh and only animation data? 0 Answers

Humanoid Blender Animations spazzing out 1 Answer


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