Getting Started Tutorial


Flying a Drone


Learn Sumerian
Flying a Drone

Tags

physics
state machine
mini game
entities panel
inspector panel
rigid body
collider
video

In this tutorial you will learn about:

Creating entities
Importing assets
Physics
State Machine

In this tutorial, we create a scene in which you can fly a drone using the keyboard.

You’ll learn about:

  • Creating entities
  • Importing assets
  • Physics
  • State Machine

We will cover the basics of creating entities and importing assets from the Asset Library. We will also cover the use of physics in Sumerian by adding “gravity” to the drone so it will fall when it’s not flying. This uses the Rigid Body component. Physics will also include the use of the Collider component, which defines entities as solid objects. This allows entities to collide with each other instead of passing through each other.

This is the scene we will build in this tutorial. Use the WASD keys to fly and steer the drone. For best results, be sure you are using the latest version of your browser.

Prerequisites

Before you begin, you should have completed the following tasks and tutorials:

Step 1: Set up a New Scene

  1. From the Dashboard, navigate to the scene Templates, and then create a scene using the Default Lighting template.

  2. Click the Create Entity button at the top of the interface.

  3. Under the Primitives category, choose Box.

Note: Change your camera view by holding the right mouse button and then moving the mouse. Scroll to zoom in/out. To learn more about the canvas, see the Amazon Sumerian Interface tutorial.

Step 2: Change the Dimensions

  1. Select the Box entity by choosing it in the Entities panel or by clicking the box in the canvas.

  2. With the Box entity selected, navigate to the Inspector panel on the right. Expand the Transform component.

  3. Be sure to leave the Uniform Scale checkbox as unchecked and change the Scale values to (10, 1, 2).

Step 3: Adding the Drone to the Scene

  1. Choose Import Assets in the top menu bar.
  2. Now that you’re in the asset library, search for and then add “Drone”.