Search Unity

2D collider change with animation problem

Discussion in '2D' started by DamKay, Oct 10, 2019.

  1. DamKay

    DamKay

    Joined:
    Aug 18, 2019
    Posts:
    10
    I have a fall animation that fits the collider to the players size:


    When the player hits the ground while the collider is shrunk from the fall animation,
    The collider reverts to normal but the player is mid ground.


    How do i move him based of the collider size and offset?

    I noticed that the unity game kit 2d has a mechanism for this which did not work for me and i couldnt adapt it to my project.

    Please any kind of help or reference to sources that might help
     

    Attached Files:

  2. Dragoon-scales

    Dragoon-scales

    Joined:
    Jul 6, 2019
    Posts:
    9
    Hi,
    I'm having the same problem. Did you find any solution for this ?