# Emissive Not Work in UE5

**URL:** <https://forums.unrealengine.com/t/emissive-not-work-in-ue5/545423>\
**Category:** Asset Creation\
**Created:** [May 1, 2022, 7:36am UTC](https://forums.unrealengine.com/t/emissive-not-work-in-ue5/545423 "2022-05-01T07:36:04Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [May 8, 2022, 9:30am UTC](https://forums.unrealengine.com/t/emissive-not-work-in-ue5/545423/18 "2022-05-08T09:30:03Z")

</div>

Here’s a quick mock-up:  
 ![Orbits](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/f/c5f371b881444eb69398f9e28cdacad6d0499dd5.gif)

Code:

> **[Planet Orbit BP | Unreal engine Code Snippet](https://dev.epicgames.com/community/snippets/drR/planet-orbit-bp)**
>
> Example blueprint to handle planet orbits

Blueprint Variables:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/c/b9cbcaeca5a4bf3f0d9e3bbc318b893dc9b08293.png)

There’s the base BP\_Body with children for the Sun, Earth and Moons etc. Just right-click the BP\_Body and create child blueprint, in those change the material for the star/planet/moon etc and set the distance, rotation speed, orbit speed and tilt (-100 → 100) and select the “parent” body to orbit around, the suns parent can be left empty.

Then just add them to your scene, attach moons to their planets and planets to the sun:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/b/53b00dafc64ad6b3011c489b8cd0baca9f040149.jpeg)

To get the day of year, take the (OrbitRotation/360)\*365 and for the time of day take the (RotationAngle/360)\*24

To get the moon to always face the earth, you’ll just need to find the correct rotation speed that matches the orbit speed.

---

_[View the full topic](https://forums.unrealengine.com/t/emissive-not-work-in-ue5/545423)._
