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 to achieve turning in place?

Discussion in 'Animation' started by BakeMyCake, Oct 11, 2019.

  1. BakeMyCake

    BakeMyCake

    Joined:
    May 8, 2017
    Posts:
    175
    In some games there's this cool touch where the character that is issued a command to move 90+ degrees opposite direction would do a very convincing short turn in place before proceeding. An example can be seen in the video below:

    Can this tech be achieved in Unity?

    Unity docs mention target matching(https://docs.unity3d.com/Manual/TargetMatching.html), but I'm struggling to wrap my head around how it's supposed to get me there. Do I need to make a generic turning animation and then calculate where the feet need to be positioned and call the target matching function while the turning animation plays?