Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Prevent animation from rotating object

Discussion in 'Animation' started by l3mon, Apr 26, 2018.

  1. l3mon

    l3mon

    Joined:
    Jan 25, 2016
    Posts:
    21
    Hi there,

    I bought a model on the asset store and its bone structure seems too complicated for me to do anything with it in blender. However, it comes equipped with enough animations, which are provided as FBX models with the corresponding animation frames.

    One of those, I would like to use with the game object going forward, but the animation turns the object downwards looking.

    I disabled the Apply Root Motion option in the Animator component of the game object.
    In the inspector of the animation model in the Model tab, I can see the Apply Root Motion checked, but it's read only.
    In the Animation tab, I tried different settings for the Bake Into Pose flags, but did not get the desired result.
    Instead the object was rotated on the downward looking axis or disappeared.

    Any help much appreciated!
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    Duplicating the clip will remove the read only restriction.
    If you duplicate the clip - can you make the edits you want?

    Just select the root node in blender and remove the downward looking motion. Then export as fbx.
     
  3. l3mon

    l3mon

    Joined:
    Jan 25, 2016
    Posts:
    21
    Unfortunately, the parts that seemed to make a difference stay read only.

    Unfortunately, even importing as fbx and exporting as fbx (no changes) leads to anomalies (blender takes ages on export and Unity hangs up every time while loading the model).

    Luckily the creator of the model supplied a rotated version in the meantime, which works fine.
    However, didn't think that such a simple issue would cause such headaches.

    Thank you anyway.