# Rotating around given axis

**URL:** <https://forums.unrealengine.com/t/rotating-around-given-axis/90387>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [April 21, 2017, 8:18am UTC](https://forums.unrealengine.com/t/rotating-around-given-axis/90387 "2017-04-21T08:18:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stozoul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stozoul](https://forums.unrealengine.com/u/stozoul)\
**Post date:** [April 21, 2017, 8:18am UTC](https://forums.unrealengine.com/t/rotating-around-given-axis/90387/1 "2017-04-21T08:18:41Z")

</div>

I have a static mesh that I want to rotate around itself with some obliquity like that;

 ![AxialTiltObliquity.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/c/5c694a7bfc5c87b3d6e49b8be0f64c2c1a47b828.png)

But when i do that with usual degrees(roll, pitch, yaw), the poles keep changing places.

When I’m using the following code, I’m very close to achieve what I want. But some place close to north pole acts like north pole, while the north pole is rotating around it:  
earth-\>SetWorldRotation(FQuat(FRotator(-20.0f, 0, 0).Vector(), -\_second\_angle\_in\_radians));

Waiting for your help, thanks 🙂

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [April 21, 2017, 2:56pm UTC](https://forums.unrealengine.com/t/rotating-around-given-axis/90387/2 "2017-04-21T14:56:03Z")

</div>

Did you use combine rotators?

---

<div class="post-metadata">

**Author:** ![stozoul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stozoul](https://forums.unrealengine.com/u/stozoul)\
**Post date:** [April 22, 2017, 12:12am UTC](https://forums.unrealengine.com/t/rotating-around-given-axis/90387/3 "2017-04-22T00:12:22Z")

</div>

> [@redbox;697977](#):
>
> Did you use combine rotators?

How to do that?

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [April 22, 2017, 10:44am UTC](https://forums.unrealengine.com/t/rotating-around-given-axis/90387/4 "2017-04-22T10:44:30Z")

</div>

Try this

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...
