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

Changing colliders during animations?

Discussion in '2D' started by shotoutgames, Jul 1, 2014.

  1. shotoutgames

    shotoutgames

    Joined:
    Dec 29, 2013
    Posts:
    283
    Hi all,
    I set up some sprite animations using mecanim for a player character.
    In the frames the player moves but the collider (circle collider2d in my case) of course stays at the 1st frame location.
    What is the process to change the colliders to match a frame?
    My research says to set colliders for each frame individually and then swap out colliders but I am not quite sure how to do this.
    Thanks for any input :)
     
  2. shotoutgames

    shotoutgames

    Joined:
    Dec 29, 2013
    Posts:
    283
    Answer here - duh for not finding before
    http://www.raywenderlich.com/61532/unity-2d-tutorial-getting-started

    However any better methods?
    Nightmare for multiple frames and animations of one sprite :(