Search Unity

Animation Collisions & Gravity

Discussion in 'Animation' started by overburn404, Nov 10, 2017.

  1. overburn404

    overburn404

    Joined:
    Feb 19, 2017
    Posts:
    23
    Hello

    I'm currently animating a character with mecanim - just adding a walk animation and letting it loop.
    The issue is that the animation isn't static - the character just moves forward constantly.

    Also , whenever the npc encounters an obstacle, it just passes through it, so there is no collision going on.
    And if I want to say , change the move speed , how would I be able to do that , since the animation also changes the position?

    Thanks!
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    You want to look into root motion in the documentation and also training material.
    Also might want to look at path finding from the docs.

    Those two topics will guide you in finding the solutions to the issues you are experiencing.