Download

Rotating around given axis

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

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 :slight_smile:

Did you use combine rotators?

How to do that?

Try this