How would I get what part of a skeletal mesh I hit using c++?

I have a bullet and a player I need to be able to detect what part of the mesh I’m hitting for things like head shots, right hand and so on.

In most games, you would add extra collision primitives for Headshots so that you can tune them and ensure every characters’ hitbox is the same.

If you want something more advanced, the best way is to probably get the nearest bone from the hit.