# AI jumps when player dodges into him!

**URL:** <https://forums.unrealengine.com/t/ai-jumps-when-player-dodges-into-him/2697782>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, CPP, question\
**Created:** [February 6, 2026, 10:48am UTC](https://forums.unrealengine.com/t/ai-jumps-when-player-dodges-into-him/2697782 "2026-02-06T10:48:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Codephase-Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codephase-games/32/1115836_2.png) [@Codephase-Games](https://forums.unrealengine.com/u/Codephase-Games)\
**Post date:** [February 6, 2026, 10:48am UTC](https://forums.unrealengine.com/t/ai-jumps-when-player-dodges-into-him/2697782/1 "2026-02-06T10:48:26Z")

</div>

When the player dodges and hits the enemy AI it jumps, and I do not want that to happen.

I already setup a system when the player is close to pawns and dodges, root motion will be ignored and he wont bump into the AI but this creates another problem where the player won’t dodge away from the AI even if he isn’t dodging into him because root motion is ignored.

Things I tried and didn’t work:

Lower depenetration value  
Remove ability to jump  
Remove jump animation  
Set Z velocity to 0  
All attachments have no collisions with pawns

> ****
>
> > ****
> >

> ****
>

---

<div class="post-metadata">

**Author:** ![BRGEzedeRocco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgezederocco/32/1216890_2.png) [@BRGEzedeRocco](https://forums.unrealengine.com/u/BRGEzedeRocco)\
**Post date:** [February 6, 2026, 11:48am UTC](https://forums.unrealengine.com/t/ai-jumps-when-player-dodges-into-him/2697782/2 "2026-02-06T11:48:10Z")

</div>

Hi @Codephase-Games ,  
I don’t know much about AI, but at first glance this seems to be related to a **capsule collision** issue, however, as you mentioned, none of the attachments have collision enabled against Pawns, so that might rule out attachment collisions as the cause

I did a bit of research and found some posts describing similar behavior, where characters get lifted or pushed when colliding.  
I think they could serve as a **guide** to help identify a possible solution.

> [@AI characters push each other and fly around the map. How to fix it?](https://forums.unrealengine.com/t/ai-characters-push-each-other-and-fly-around-the-map-how-to-fix-it/598083):
>
> I want them to chase a player and attack when it is possible. It is based on a Character class. AI Controller has UCrowdFollowingComponent. I want them to behave like Warcraft 3 enemies surrounding a character and attack. But instead, they push each other. I guess I could disable some physics interactions, but I tried different options and had no luck. Any Advice?

> [@Why is my AI jumping like this??](https://forums.unrealengine.com/t/why-is-my-ai-jumping-like-this/2472245):
>
> Please take a look at this video and tell me what’s wrong and why my AI is jumping when my character attacks. There are times when my AI jumps very high and this has occurred when my character is near or when I do jumps or attacks on the AI. The AI does this weird jump thing even before or after I added the Jump\_Hit (Box collision).

Hope it helps!

---

<div class="post-metadata">

**Author:** ![Codephase-Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codephase-games/32/1115836_2.png) [@Codephase-Games](https://forums.unrealengine.com/u/Codephase-Games)\
**Post date:** [February 6, 2026, 5:35pm UTC](https://forums.unrealengine.com/t/ai-jumps-when-player-dodges-into-him/2697782/3 "2026-02-06T17:35:13Z")

</div>

Hey

I always look for solution before asking for help and I already tried the solution in other posts and didn’t quite work out.

Thank you for suggesting it

---

<div class="post-metadata">

**Author:** ![Codephase-Games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codephase-games/32/1115836_2.png) [@Codephase-Games](https://forums.unrealengine.com/u/Codephase-Games)\
**Post date:** [February 13, 2026, 2:58pm UTC](https://forums.unrealengine.com/t/ai-jumps-when-player-dodges-into-him/2697782/5 "2026-02-13T14:58:15Z")

</div>

So AI character is jumping because the root motion montage played by the player causes vertical motion that the AI’s CharacterMovementComponent interprets as a jump. This is also true when player attacks the AI as well, mentioned in other forums.

To stop this just, in AI blueprint, set the CharacterMovementMode = None.

But this creates a lot of other issues such as the AI cannot move anymore. Solve this issue by setting a timer by event, Time=0.01, Looping and Max once per frame, with the following inside it (you probably want to check for better ways of optimizing it).

 ![Screenshot 2026-02-13 181837](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/f/24fb0d4ff1eb18788eefb341afecfb8d80d4282e.jpeg)

So you only set movement mode to none and no root motion when both AI and Player blueprints and when they are attacking and within the attack radius there is an enemy. Allow Physics During Anim Root Motion is for the AI to rotate towards the player when it attacks and only does whenever you want it (in my case AttackRotation is set in the animation)
