• Runtimes
  • [UNITY] how to make animated 2d collider

Hi i just recently using unity and spine and i have problem detecting collision in unity 2d

what i need is a collider like 3d Mesh collider that can check the collision when the weapon is hit against the enemy, and i also need that collider follow the animated weapon sprite position

is there any documentation or example for this problem?

Thanks

Related Discussions
...

Afraid I can't help you with the code part, but you can create a bounding box in Spine and attach it to a slot similar to how you attach images to slots. Then in Unity you can use the dimensions of that bounding box to check for collisions. Hope it helps.

Hi all thanks for the replies,
i searched for it and finally found some easy answer
by using spine bone component, i can attach collider that will move along with the animation