Search Unity

How to handle strafing?

Discussion in 'Animation' started by Lethn, Nov 8, 2018.

  1. Lethn

    Lethn

    Joined:
    May 18, 2015
    Posts:
    910
    I've got myself a bit of an interesting problem to work out, I'm playing around with human animations and I want to allow for quite a bit of freedom with the movement one thing I want to do is allow for some decent strafing behaviour. I've got the animation working but there's a problem that I'm thinking about, if you loop the strafing animation despite the body moving to the right the positioning will snap back after it's finished.

    Now the obvious answer to this is to use code to position the character as the strafing animation plays but I'm not 100% sure how I'd implement it and make it look natural, would anyone mind sharing with me good ways of doing it?