# Help With Rotator Math

**URL:** <https://forums.unrealengine.com/t/help-with-rotator-math/441266>\
**Category:** Community & Industry Discussion\
**Tags:** math, rotator, unreal-engine, UE4, question\
**Created:** [January 14, 2019, 4:31am UTC](https://forums.unrealengine.com/t/help-with-rotator-math/441266 "2019-01-14T04:31:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NightHawk45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NightHawk45](https://forums.unrealengine.com/u/NightHawk45)\
**Post date:** [January 14, 2019, 4:31am UTC](https://forums.unrealengine.com/t/help-with-rotator-math/441266/1 "2019-01-14T04:31:18Z")

</div>

Hello everyone! I am attempting to create a simple system to offset a camera’s relative location. To do this, I am using the player’s control rotation. My blueprints work great, except for one issue. When the axis resets (for example, when pitch goes from 360 to 0), my calculations are completely messed up. I can include blueprints if anyone needs to see an example of what I am talking about.

What is the correct way for me to do math like this on rotators?

---

<div class="post-metadata">

**Author:** ![Weibye](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Weibye](https://forums.unrealengine.com/u/Weibye)\
**Post date:** [January 14, 2019, 2:24pm UTC](https://forums.unrealengine.com/t/help-with-rotator-math/441266/2 "2019-01-14T14:24:50Z")

</div>

You are going to have to show screenshots of your code in question for reference, to see exactly what you are trying to do. In the meantime, perhaps this may be of help? [Blueprints Get Rotation of Object - Programming & Scripting - Unreal Engine Forums](https://answers.unrealengine.com/questions/862954/blueprints-get-rotation-of-object.html)

---

<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:** [January 14, 2019, 2:46pm UTC](https://forums.unrealengine.com/t/help-with-rotator-math/441266/3 "2019-01-14T14:46:10Z")

</div>

Actually rotation goes from -180 to 180, not from 0 to 360; and yes, sometimes it causes math troubles, depending on what exaclty you want to calculate. It would be helpful if you posted some BP screenshots and explained what exactly you want to do.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_016a9874](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_016a9874](https://forums.unrealengine.com/u/anonymous_user_016a9874)\
**Post date:** [April 14, 2021, 2:30pm UTC](https://forums.unrealengine.com/t/help-with-rotator-math/441266/4 "2021-04-14T14:30:22Z")

</div>

Oh, I was looking for this answer too.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e980844e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e980844e](https://forums.unrealengine.com/u/anonymous_user_e980844e)\
**Post date:** [October 10, 2022, 8:35am UTC](https://forums.unrealengine.com/t/help-with-rotator-math/441266/5 "2022-10-10T08:35:23Z")

</div>

A rotor is an object in the geometric algebra of a vector space that represents a rotation about the origin
