Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How can I make mobile animations sand still?

Discussion in 'Animation' started by TimeCastle, Mar 18, 2015.

  1. TimeCastle

    TimeCastle

    Joined:
    Jan 12, 2015
    Posts:
    32
    Just a heads up; I'm fairly certain that the answer to this question is super simple, I've just never made a game with animations before :/

    So for the game I'm making, I have a character (Just a capsule with controls and script on it) and then an person under it being moved.

    I made some animations, and it took me a while because this was my first time ever making some. However, my walking animations all move forward, outside of the capsule (and the gun) so the person eventually just falls off the camera range.
    Is there any way to just switch an animation to in place, or do I have to remake all the animations I made, just in place?
     
  2. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    yes you can, look at the importer option, make sure that
    Root Transform Rotation - Bake Into pose is checked
    Root Transform Position Y - Bake Into pose is checked
    Root Transform Position XZ - Bake Into pose is checked

    That should work.
    importer.png
     
  3. TimeCastle

    TimeCastle

    Joined:
    Jan 12, 2015
    Posts:
    32
    I tried that, but it makes him take four steps outside of the capsule, then teleport back in, and repeat.
     
  4. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    so you probably have some translation animation on another node than the root node, you will need to go back in your authoring tools and remove those animation curve if you want an In Place animation