# How to aim character punches towards enemy head?

**URL:** <https://forums.unrealengine.com/t/how-to-aim-character-punches-towards-enemy-head/487938>\
**Category:** Character & Animation\
**Tags:** target, aim-space, unreal-engine, question\
**Created:** [August 24, 2021, 8:36pm UTC](https://forums.unrealengine.com/t/how-to-aim-character-punches-towards-enemy-head/487938 "2021-08-24T20:36:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanJewbo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryanjewbo/32/88716_2.png) [@RyanJewbo](https://forums.unrealengine.com/u/RyanJewbo)\
**Post date:** [August 24, 2021, 8:36pm UTC](https://forums.unrealengine.com/t/how-to-aim-character-punches-towards-enemy-head/487938/1 "2021-08-24T20:36:15Z")

</div>

Fairly new to UE, and I’m making a simple boxing game (characters of different heights), and i was wondering what i needed to do / research to make it so that when you punch, your character targets the head of the enemy. Can’t seem to find much on the internet - maybe I’m searching the wrong thing!

Any help / advice would be appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [August 25, 2021, 7:59am UTC](https://forums.unrealengine.com/t/how-to-aim-character-punches-towards-enemy-head/487938/2 "2021-08-25T07:59:32Z")

</div>

Have you considered using IKs, with nodes like “Two Bone IK” ([[IK Setups | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/AnimatingObjects/SkeletalMeshAnimation/IKSetups/)][2]), where you can set the Effector Location the enemy’s head?

 ![347199-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/3/22380a21be13e02a8897d97723d21f5769358a82.png)

---

<div class="post-metadata">

**Author:** ![RyanJewbo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryanjewbo/32/88716_2.png) [@RyanJewbo](https://forums.unrealengine.com/u/RyanJewbo)\
**Post date:** [August 30, 2021, 2:05pm UTC](https://forums.unrealengine.com/t/how-to-aim-character-punches-towards-enemy-head/487938/3 "2021-08-30T14:05:49Z")

</div>

Hey! This works perfect. However, I am having a problem where the animation is not going back to its original position, it sort of stops half way back… I’ll show you a screenshot of what I mean. Thank you for your reply.

 ![347671-zzzzzzzzz.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/3/0f38f1534358dcc04e9ebe2a7de40f1a24163380.jpeg)

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [August 30, 2021, 6:39pm UTC](https://forums.unrealengine.com/t/how-to-aim-character-punches-towards-enemy-head/487938/4 "2021-08-30T18:39:42Z")

</div>

Use a curve to control the alpha. That also allows for a smooth blending with the underlying animation.

Start punch =\> Alpha = 0 =\> IK has no control, the punch starts going in the normal direction.

Near end punch =\> Alpha = 1 =\> IK has full control, the punch is going in the direction of the effector.

---

<div class="post-metadata">

**Author:** ![RyanJewbo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryanjewbo/32/88716_2.png) [@RyanJewbo](https://forums.unrealengine.com/u/RyanJewbo)\
**Post date:** [September 3, 2021, 4:43pm UTC](https://forums.unrealengine.com/t/how-to-aim-character-punches-towards-enemy-head/487938/5 "2021-09-03T16:43:37Z")

</div>

Mate this worked like a charm. Thank you for your help! 🙂
