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. Dismiss Notice

does unity have any way to play an animation mirrored

Discussion in 'Animation' started by Nanako, Jan 16, 2015.

  1. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    So i was rewatching this video http://www.gdcvault.com/play/1020583/Animation-Bootcamp-An-Indie-Approach

    About 5.25

    He mentions making a running animation with just two keyframes (reach and pass)
    I'm trying that myself, but i've quickly come to the realisation that i can't seem to do it with any less than five.
    Reachleft, pass, reachright, pass again, reachleft again

    If i play the animation with pingpong, i can reduce it to three, but still

    That's quite a bit more, and will be a pain to work with. I wonder if there's an easier way?
    Technically, these two frames DO contain all the data we need, i just need a system to handle it. What i basically want to do is pingpong the animation, playing it forward first, and then in reverse AND mirrored. Then forward, then reverse mirrored again, etc.

    Is this even possible to do in unity?
    NB: I am using the humanoid rig, which should at the least, make it a very possible feature to implement, if it isnt already.
     
    Last edited: Jan 16, 2015
  2. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    Mecanim doesn't support ping pong mode like the legacy animation component.
    But it does support mirror on animation clip, so if you have a turn right clip, you can create a turn left clip by enabling the mirror option.
     
  3. Nanako

    Nanako

    Joined:
    Sep 24, 2014
    Posts:
    1,047
    really ? arg, ive been wondering why i couldn't find it ;-;

    please implement that in future D: