# Axis of rotation

**URL:** <https://forums.unrealengine.com/t/axis-of-rotation/304732>\
**Category:** Community & Industry Discussion\
**Tags:** math, rotating, unreal-engine, question\
**Created:** [January 22, 2015, 9:51pm UTC](https://forums.unrealengine.com/t/axis-of-rotation/304732 "2015-01-22T21:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shammah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shammah](https://forums.unrealengine.com/u/Shammah)\
**Post date:** [January 22, 2015, 9:51pm UTC](https://forums.unrealengine.com/t/axis-of-rotation/304732/1 "2015-01-22T21:51:44Z")

</div>

Given an actor with angular velocity, I want to find out its axis of rotation. I only know of [UPrimitiveComponent::GetPhysicsAngularVelocity | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UPrimitiveComponent/GetPhysicsAngularVelocity/index.html), which is does not return the axis of rotation but one of the many axes tangential to it. Is there a way to derive or get the axis of rotation for a rotating object?

EDIT: Using the (curling) right hand rule, I could get the axis of rotation per component given by GetPhysicsAngularVelocity() and then add the resulting three vectors to get the final axis of rotation. I cannot prove that this is correct. Would this be right?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_957a4452](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_957a4452](https://forums.unrealengine.com/u/anonymous_user_957a4452)\
**Post date:** [March 18, 2015, 3:53pm UTC](https://forums.unrealengine.com/t/axis-of-rotation/304732/2 "2015-03-18T15:53:11Z")

</div>

Hi ,

You should normalize vector returned by GetPhysicsAngularVelocity() function and it will be your rotation axis in current moment.

Best regards,
