# Attatching Enemies heads to a melee weapons when hit

**URL:** <https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [December 12, 2019, 4:38pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911 "2019-12-12T16:38:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaseReality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/basereality/32/893179_2.png) [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Post date:** [December 12, 2019, 4:38pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/1 "2019-12-12T16:38:53Z")

</div>

I have seen something I want to replicate in both the walking dead saints and sinners vr game and the new boneworks game.  
Basically when you hit an enemy in the head with a melee weapon it makes it seem like the weapon has embedded in the skull and you need to yank it back out again.  
Boneworks example vid

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/e/e0e43874dd702eae612aa491953b9e9a91228e13.jpeg "Boneworks Review (Stress Level Zero) - PC VR") ](https://www.youtube.com/watch?v=eugfwHklz2I)

Walking dead example vid

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/5/ae5ba392a44eaefa211c065dc0d5de6530f07fca.jpeg "The Walking Dead Saints & Sinners Gameplay") ](https://www.youtube.com/watch?v=dm8kVkxznfE)

I have had some Ideas on how this could work where if the velocity of the melee weapon is greater than a certain value when the head is struck, it could attach to the melee weapon using either An IK chain or physical animation blend. And detach from the melee weapon if the motion controller velocity is above a certain value.  
Anybody got some good ideas on a way to pull this off convincingly or better methods on how to do it.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [December 12, 2019, 5:26pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/2 "2019-12-12T17:26:51Z")

</div>

They are using physical constraints to attach, which lets it easily also be not limited in X+ but imparting forces still.

---

<div class="post-metadata">

**Author:** ![BaseReality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/basereality/32/893179_2.png) [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Post date:** [December 12, 2019, 6:24pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/3 "2019-12-12T18:24:08Z")

</div>

Thanks for replying **[mordentral](https://forums.unrealengine.com/member/4285-mordentral).**

Sorry I don’t follow what X+ is.  
when you say physical constraint Do you mean like a physics handle ?  
Could you provide more information of how you think its working as I don’t fully understand yet

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [December 12, 2019, 6:59pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/4 "2019-12-12T18:59:39Z")

</div>

No, like an actual physics constraint, like what the PhysicsConstraintComponent does, then you can unlock a forward axis to allow penetrating deeper or pulling out again and just add some friction to it.

---

<div class="post-metadata">

**Author:** ![BaseReality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/basereality/32/893179_2.png) [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Post date:** [December 12, 2019, 7:21pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/5 "2019-12-12T19:21:49Z")

</div>

So this is most likely the same method that being used to run through enemy’s with swords too like in blade & sorcery.  
I think I may have already use a physics constraint to simulate a grenade pin swing on the main body of a grenade.  
But Im not sure how it would work in the method I need.  
Would the constraint need to be on the enemies body or the melee weapon?  
Just trying to visualize how the system would work

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [December 12, 2019, 8:00pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/6 "2019-12-12T20:00:23Z")

</div>

A constraint works between two objects, it could be inside of one, or the other, or neither if using an actor constraint.

You are basically just looking for something like at this timestamp:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/6/cd697fac396ff07b58d0c3e46a79629e522ee50b.jpeg "Brief talk about 4.24") ](https://www.youtube.com/watch?v=ApcYvs27QoQ)

Though the actual effect is notably better if you are using physically interactive gripping like in the video as it limits forces applied.

---

<div class="post-metadata">

**Author:** ![BaseReality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/basereality/32/893179_2.png) [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Post date:** [December 13, 2019, 8:54pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/7 "2019-12-13T20:54:57Z")

</div>

Found a Better video Of the exact thing I want to pull off. I also like the way the player can grab the zombies around the head /neck and stab them with a knife in the head.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/5/ae5ba392a44eaefa211c065dc0d5de6530f07fca.jpeg "The Walking Dead Saints & Sinners Gameplay") ](https://www.youtube.com/watch?v=dm8kVkxznfE)

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [December 14, 2019, 12:27am UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/8 "2019-12-14T00:27:11Z")

</div>

> [@BaseReality](#):
>
> Found a Better video Of the exact thing I want to pull off. I also like the way the player can grab the zombies around the head /neck and stab them with a knife in the head.  
> [https://youtu.be/dm8kVkxznfE?t=464](https://youtu.be/dm8kVkxznfE?t=464)

Yeah that is the same thing?

---

<div class="post-metadata">

**Author:** ![BaseReality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/basereality/32/893179_2.png) [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Post date:** [December 15, 2019, 4:13pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/9 "2019-12-15T16:13:44Z")

</div>

Sorry to be a pain in the ■■■ [mordentral](https://forums.unrealengine.com/member/4285-mordentral)But I’m struggling to understand how to set this up inside BPs.  
If you get a chance could you provide screenshots of the BP code as I cant visualize how the weapon Is interacting with the skeletal mesh of the character BP.  
And how they are attaching via the constraint.  
I really want to solve this as its been a issue on the back-burner for a while.  
not sure if the constraint should be in the victim BP or the weapon BP.  
Not sure how a vr hand could also grab a character skeletal mesh by the head.  
Im still working and testing stuff but its not going well ☹

---

<div class="post-metadata">

**Author:** ![V\_VILLAIN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/v_villain/32/1073986_2.png) [@V\_VILLAIN](https://forums.unrealengine.com/u/V_VILLAIN)\
**Post date:** [May 16, 2025, 8:14pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/10 "2025-05-16T20:14:35Z")

</div>

Hi 👋🏼, well 6 years later… i try now to figure it out for days but its quite half working… using physics constraints or now a physics handle… i am able to attach the knife to the mesh of impact but yea its slways a bit of when moving and no clue how to get the push deeper logic working.. have a spline approach but its just not doing it. Did you figured it out?

---

<div class="post-metadata">

**Author:** ![NiqyDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NiqyDev](https://forums.unrealengine.com/u/NiqyDev)\
**Post date:** [May 29, 2025, 11:15pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/11 "2025-05-29T23:15:57Z")

</div>

Hi @V_VILLAIN I’m trying to this as well and found that with constraints the weapon doesn’t seem stuck as it wobbles around too much, even with linear and angular XYZ locked. Did you figure this out?

---

<div class="post-metadata">

**Author:** ![NiqyDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NiqyDev](https://forums.unrealengine.com/u/NiqyDev)\
**Post date:** [May 29, 2025, 11:19pm UTC](https://forums.unrealengine.com/t/attatching-enemies-heads-to-a-melee-weapons-when-hit/134911/12 "2025-05-29T23:19:05Z")

</div>

@V_VILLAIN I just found this, it has some information from the walking dead devs on their stabbing mechanic: [https://www.unrealengine.com/fr/tech-blog/skydance-interactive-shows-how-it-injected-vr-physicality-and-melee-combat-in-the-walking-dead-saints-sinners](https://www.unrealengine.com/fr/tech-blog/skydance-interactive-shows-how-it-injected-vr-physicality-and-melee-combat-in-the-walking-dead-saints-sinners)
