collision on a socket does not work in an animation

In my game project in UE5 I made an animation on my character which is punch, I add a socket on the hand and put a collision box on the socket. Then the collision box does not work when I do the animation. Do anyone know the reason?


Hello @yujiaoshou

In order to get any Hit Results you need to have this box checked, rest should be up to the collision settings. :slight_smile:

You’re using the Character class which only allows the Capsule Component to Block. All other attached components/actors blocking flags will be ignored on collisions with other actors. You can only do overlaps with them.

Another downside is components that block will also interfere with character movement.

Use an Overlap. Have the box component only overlap skeletal meshes. On begin overlap check if the overlapped actor is a Pawn, then apply a sphere trace at the overlap location. Use the hit result to get the hit bone etc to apply damage.