# Calculate Spin Direction Mid Air

**URL:** <https://forums.unrealengine.com/t/calculate-spin-direction-mid-air/481558>\
**Category:** Community & Industry Discussion\
**Tags:** direction, rotation, jump, unreal-engine, question\
**Created:** [April 7, 2021, 6:11pm UTC](https://forums.unrealengine.com/t/calculate-spin-direction-mid-air/481558 "2021-04-07T18:11:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![guymakingdata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@guymakingdata](https://forums.unrealengine.com/u/guymakingdata)\
**Post date:** [April 7, 2021, 6:11pm UTC](https://forums.unrealengine.com/t/calculate-spin-direction-mid-air/481558/1 "2021-04-07T18:11:27Z")

</div>

How would I go about calculating a characters spin direction mid air? I’d like to get a float value based on if the character is rotating left or right so I can apply it to a blend space to have the character look in the direction he’s spinning.

Any advice is welcome - Extra points for giving me a higher float value based on speed of rotation!!

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [April 7, 2021, 6:32pm UTC](https://forums.unrealengine.com/t/calculate-spin-direction-mid-air/481558/2 "2021-04-07T18:32:20Z")

</div>

I assume the character is not simulating physics:

 ![335113-rotation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/0/c401ddbd4df468bf5e8de9f849fd696187b90720.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [April 7, 2021, 6:37pm UTC](https://forums.unrealengine.com/t/calculate-spin-direction-mid-air/481558/3 "2021-04-07T18:37:31Z")

</div>

P.S. I used control rotation because I have a first-person character and character rotation == control rotation, but you can use the rotation of your capsule or mesh or whatever, maybe even relative, in case your character may tilt, like a skateboarder, etc.

---

<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:** [April 7, 2021, 6:42pm UTC](https://forums.unrealengine.com/t/calculate-spin-direction-mid-air/481558/4 "2021-04-07T18:42:23Z")

</div>

Here’s another way to do it:

![335115-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/a/bdac1167b1935693da1eb49d406d617c9d3419bf.png)

And no physics sim is needed. The movement component takes care of it; assuming the capsule is the root of the actor. So it could look like this:

 ![335066-screenshot-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/7/797e3a3b830ea75f84a66f8b80c8c66dfeaa2f1c.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [April 7, 2021, 6:50pm UTC](https://forums.unrealengine.com/t/calculate-spin-direction-mid-air/481558/5 "2021-04-07T18:50:26Z")

</div>

Indeed it works. I had thought it would only work with physics objects.

---

<div class="post-metadata">

**Author:** ![guymakingdata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@guymakingdata](https://forums.unrealengine.com/u/guymakingdata)\
**Post date:** [April 7, 2021, 9:49pm UTC](https://forums.unrealengine.com/t/calculate-spin-direction-mid-air/481558/6 "2021-04-07T21:49:34Z")

</div>

Thanks @Tuerer - Unfortunately I couldn’t get the result on that - I think it was because My character is 3rd person and looking at controller direction (I’ll be more specific next time but much gratitude for the help).

@Everynone - you’re an absolute genius and a real legend mate - works like a charm and I learned something new in the process.
