Detecting collisions on different parts of an object

In the game I’m working on, you shoot arrows at enemies that carry shields. 

I’d like to detect collisions on the entire enemy, so that if it arrow hits the shield, it sticks (weld joint) and if it hits the head, it kills the enemy. 

The enemies are animated sprites, and I’ve been using Physics Editor to trace the outlines of the enemies, but am open to other options. Thanks!

Physics editor is a good choice, just create different rects around the areas you want and name them differently. I did this for a basket that had sides and a bottom awhile back and it worked very well.

Hi @aaronkarp,

You can easily detect which element of a multi-element physics body has received a collision. You just need to specify that element by its “numerical index” during your collision detection. See the following guide under “Multi-Element Collisions”:

http://docs.coronalabs.com/guide/physics/collisionDetection/index.html#multielement

Best regards,

Brent

Physics editor is a good choice, just create different rects around the areas you want and name them differently. I did this for a basket that had sides and a bottom awhile back and it worked very well.

Hi @aaronkarp,

You can easily detect which element of a multi-element physics body has received a collision. You just need to specify that element by its “numerical index” during your collision detection. See the following guide under “Multi-Element Collisions”:

http://docs.coronalabs.com/guide/physics/collisionDetection/index.html#multielement

Best regards,

Brent