# Character Rotates When Jumping

**URL:** <https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [July 28, 2023, 7:06am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525 "2023-07-28T07:06:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mafjontaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mafjontaz](https://forums.unrealengine.com/u/Mafjontaz)\
**Post date:** [July 28, 2023, 7:06am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525/1 "2023-07-28T07:06:53Z")

</div>

Hello i have a problem, when the character jumps it rotates towards a specific direction

[igmur](https://imgur.com/a/x9i3VRe)

Does anyone know what the problem might be and how to fix it, thanks to any replies

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 28, 2023, 7:39am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525/2 "2023-07-28T07:39:10Z")

</div>

How are you jumping? What script is running on Tick. You must give us _something_ to work with.

---

<div class="post-metadata">

**Author:** ![Mafjontaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mafjontaz](https://forums.unrealengine.com/u/Mafjontaz)\
**Post date:** [July 28, 2023, 7:47am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525/3 "2023-07-28T07:47:08Z")

</div>

![jump](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/8/268f998f0fff32c1c2014caa652c5a879df2dbc0.jpeg)

just the default third person template jumping

---

<div class="post-metadata">

**Author:** ![Mafjontaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mafjontaz](https://forums.unrealengine.com/u/Mafjontaz)\
**Post date:** [July 28, 2023, 7:51am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525/4 "2023-07-28T07:51:54Z")

</div>

![tick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/d/5cd309ca9d39a59f866429d00cccb3f4ce7f1005.jpeg)

this is the only rotation related thing running on tick

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 28, 2023, 7:53am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525/5 "2023-07-28T07:53:43Z")

</div>

Can we see how `Target Capsule Rotation` is being calculated?

---

<div class="post-metadata">

**Author:** ![Mafjontaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mafjontaz](https://forums.unrealengine.com/u/Mafjontaz)\
**Post date:** [July 28, 2023, 7:56am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525/6 "2023-07-28T07:56:26Z")

</div>

![Skärmbild 2023-07-28 095612](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/e/ece20b787f7b97b75d2d50e6cfdc13065f20f5b3.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 28, 2023, 8:10am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525/7 "2023-07-28T08:10:36Z")

</div>

The calculation for A seems to be incorrectly derived from Velocity and will probably equal zero in this case. Do note that jumping is **also** velocity! This would only work correctly when you’re moving in direction other than exclusive Z - as in jumping sideways / forward. Jumping in place will rotate you _North_, so to speak.

* * *

- is there a reason you’re making your own `rInterp` for the capsule?

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/b/55b23e4497eabf3c9b9a15fdda1b6abfc0cbb7ed.png)

Normally the above would be used, but you may want more / specific control, ofc. Just asking.

- is there a reason why we’re not using `control rotation` instead?

* * *

Try something along the lines of:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/9/1a935a826261da94f89cfafec63c563b7e23f2d2.png)

There might be additional snags to work out depending on how you need it to work.

> additional snags

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/8/898974db024ec6d3787e3fc530044824bd712816.png)

Probably this. Feels pretty OK to jump around with interp speed of 10 or thereabout. Do tell how it goes.

---

<div class="post-metadata">

**Author:** ![Mafjontaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mafjontaz](https://forums.unrealengine.com/u/Mafjontaz)\
**Post date:** [July 28, 2023, 8:49am UTC](https://forums.unrealengine.com/t/character-rotates-when-jumping/1242525/8 "2023-07-28T08:49:01Z")

</div>

thanks man i might use this instead
