Dealing damage by enemy

First thing first I’m sorry if my english is not so good but it’s not my national language :wink:

So, in my game (can send link for package) enemys are attacking with their hands. To make them dealing damage to me I added collider on their hands. Collider is moving with hands so they should hurt player but the problem is that Unity doesn’t always detect collision or detects it twice.

Any ideas how can I improve it?

Depending on how fast your time scale is inside of your editor settings it may miss a couple of hits. It’s 0.02 by default. Also are you using OnCollisionEnter/Stay or Exit to detect collision?

I didn’t do anything with time scale. I was just scaling animation speed but tested every speed and still same problem.
I’m using OnColliisionEnter.

If your collider doesn’t leave the collision box, it won’t trigger OnCollisionEnter again. Or if you enter the collision box and then on the way back down it hit’s it again it will trigger it twice like you said.

Ok, I think i found a problem.
Should I use OnCollisionEnter or OnTriggerEnter and should I use collider or make a rigidbodies on enemy and player?

If something moves it needs a rigidbody. Depending on what you are doing, either work fine. I Prefer to use triggers though.

Even when it moves by (or with) animation?