# Attaching a hitbox to the character's head

**URL:** <https://forums.unrealengine.com/t/attaching-a-hitbox-to-the-characters-head/352288>\
**Category:** Character & Animation\
**Tags:** unreal-engine, hitbox, question\
**Created:** [March 30, 2016, 8:19pm UTC](https://forums.unrealengine.com/t/attaching-a-hitbox-to-the-characters-head/352288 "2016-03-30T20:19:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasKowalski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThomasKowalski](https://forums.unrealengine.com/u/ThomasKowalski)\
**Post date:** [March 30, 2016, 8:19pm UTC](https://forums.unrealengine.com/t/attaching-a-hitbox-to-the-characters-head/352288/1 "2016-03-30T20:19:08Z")

</div>

I’d like to have hitboxes on the different parts of my character’s body. How can I do this ? The best i’ve been able to do is a capsule that I placed around the head (I did only this atm) but I’m pretty sure there’s a better way to do this. Is there a way to “attach” my hitbox to a bone or a region of the mesh of the character ?

Thanks

---

<div class="post-metadata">

**Author:** ![Black\_Phoenyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Black\_Phoenyx](https://forums.unrealengine.com/u/Black_Phoenyx)\
**Post date:** [March 30, 2016, 9:16pm UTC](https://forums.unrealengine.com/t/attaching-a-hitbox-to-the-characters-head/352288/2 "2016-03-30T21:16:47Z")

</div>

Yes there is in the component panel drag the capsule onto the skeletal mesh component, this will parent it to the mesh then in the details panel for the capsule you should now see a sockets area just below the scale settings, this is where you assign the bone that it should attach to by clicking on the search icon and then scroll down to the head bone and select it. Like this:

 ![84486-headcollisionattach.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/6/ba62a81dc8478ace31070d75401847a810f83559.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_386ab89e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_386ab89e](https://forums.unrealengine.com/u/anonymous_user_386ab89e)\
**Post date:** [February 22, 2017, 7:52am UTC](https://forums.unrealengine.com/t/attaching-a-hitbox-to-the-characters-head/352288/3 "2017-02-22T07:52:46Z")

</div>

i tried it, but i cant eddit the parent socket…

---

<div class="post-metadata">

**Author:** ![Black\_Phoenyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Black\_Phoenyx](https://forums.unrealengine.com/u/Black_Phoenyx)\
**Post date:** [February 22, 2017, 8:14am UTC](https://forums.unrealengine.com/t/attaching-a-hitbox-to-the-characters-head/352288/4 "2017-02-22T08:14:36Z")

</div>

Make sure the collision component is attached to the mesh component (drag it onto the mesh component to attach it in the components tab) and you should be able to edit the parent socket.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_386ab89e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_386ab89e](https://forums.unrealengine.com/u/anonymous_user_386ab89e)\
**Post date:** [February 22, 2017, 11:37am UTC](https://forums.unrealengine.com/t/attaching-a-hitbox-to-the-characters-head/352288/5 "2017-02-22T11:37:12Z")

</div>

Thank you, that solved my problem!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bf0e01b0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bf0e01b0](https://forums.unrealengine.com/u/anonymous_user_bf0e01b0)\
**Post date:** [November 4, 2018, 2:49pm UTC](https://forums.unrealengine.com/t/attaching-a-hitbox-to-the-characters-head/352288/6 "2018-11-04T14:49:39Z")

</div>

Any idea how this is done in C++? I cannot find a method that takes SkeletalMesh instead of SceneComponent
