I need to animate collider shape to fit sprite in each frame of an animation.
I tried using capsule or box collider but they aren’t good enough.
I don’t see possibility of adding collider points as property in animator.
I need to animate collider shape to fit sprite in each frame of an animation.
I tried using capsule or box collider but they aren’t good enough.
I don’t see possibility of adding collider points as property in animator.
Just delete the collider before the sprite reaches the next frame and re-add it immediately after that frame is instantiated. Since polygon colliders auto-mesh the sprite, you don’t have to manually update points.