Creating the moon

Next, we can create a Moon object from sphere. We'll hide the earth temporarily while we work on the moon:

  1. Temporarily hide the earth by unchecking the enable checkbox in the upper-left corner of its Inspector.
  2. Under Earth-Moon, create 3D Object | Sphere and rename it as Moon.
  3. Delete its Sphere Collider component (Sphere Collider | gear icon | Remove Component).
  4. Import moon.png into SolarSystem/Textures, if not already done.
  5. Drag moon onto the moon in the scene (or Hierarchy).
  6. Open its material (in the Earth's Inspector or directly in Assets) and uncheck Specular Highlights and Reflections.

The Moon sphere is presently scaled at (1,1,1), which is the same size as our earth. We need to scale it to be proportionally smaller. According to our NASA data, the moon is 27 percent the size of the earth.

  1. In Hierarchy, select Moon, and in Inspector, change Transform Scale to (0.27, 0.27, 0.27).
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset