How to Rotate Sphere around a Tilted Axis

Hi!

I want to rotate a sphere around the Z axis as if it were a planet. But this axis of rotation needs to be tilted 23.5 degrees, like the Earth.

How can I do it?

Thank you!

Hi! You can create an empty scene component and attach the object to the that and use relative/local rotation to get this effect. You will tilt your parent object which has the scene component, attach the object you want to revolve to the component, then you can just add local rotation with whatever speed you want it to rotate.

You can also probably setup where you want the starting position and rotation of the revolving object in the construction script as well if you aren’t satisfied with just adding it in.

@BRGCooper

Thanks, but this is exactly what I want to do:


The Earth’s rotation axis is tilted and Earth rotates around that tilted axis.

Sorry, but I don’t know how to explain it better.

Ah, the same idea can be applied. Make an actor with your static mesh being a child component and rotate the local rotation of the z axis. Then you can tilt the parent actor anyway you want.

Have you tried the rotating movement component?

There’s 3 base approaches to handling this.

  1. Rotating Movement Component
  2. Timeline Lerp Relative Rotation
  3. Panning Material

I talk slow so bumping the vids play rate to 1.5 is recommended.

Earth texture I’m using is from Solar Textures | Solar System Scope
These textures represent real planetary maps in equirectangular projection. Complete solar system including Sun and the moon. 2k and 8k resolution.