Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to make your animation at a perfect location?

Discussion in 'Animation' started by Amaresh, May 4, 2014.

  1. Amaresh

    Amaresh

    Joined:
    Jan 22, 2014
    Posts:
    21
    Hey Guys! i'm making an 3d infinite runner like subway surfers. I've three lanes and I've used a rolling animation in order to change the lanes.
    But there is problem. When the animation is executed the player rolls of to another lane but not exactly at the centre of it. Maybe the animation sequence is not covering the required distance to go from one lane centre to another.

    What should I do to prevent this. Should I increase the size of the player or reduce the size of the lanes.

    I've downloaded the animation from the unity asset store. Asset named Parkour Animations.

    Please Help ThankYou.
     
  2. shaderop

    shaderop

    Joined:
    Nov 24, 2010
    Posts:
    942
    Wouldn't be much simpler to just move the player object during the roll animation? Shouldn't even be noticeable If you time it right so the movement is spread over the duration of the animation and the required correction isn't too big.
     
  3. Amaresh

    Amaresh

    Joined:
    Jan 22, 2014
    Posts:
    21
    How can I do that? Any suggestions
     
  4. shaderop

    shaderop

    Joined:
    Nov 24, 2010
    Posts:
    942
    Might be easier if you can share the code snippet that plays the roll animation, including the bit that handles the input.