Moving 2D collider with animation

I’m a complete beginner in unity. I was trying to create a basic cricket game. Created a batting animation, and added polygon collider. But I’m confused about adding collider to the moving bat in the animation.


Or are there any other ways to do it?

Need Help ;__;

Do you have spritesheet animation ? Try to add new game object as collider (i think, kinematik rigidbody2d) for moving bat. Open animation, enable record button and move this collider as needed in the all key frames.
(maybe you should enable “apply root animation” in the animator).

Here is one stupid example(2017.2) :eyes:

3262133–251606–colAnim.unitypackage (150 KB)

Does it have to be a sprite sheet? what if i have independent files that i dragged on to make a ani file?