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
- 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.
Before you begin, you should have completed the following tasks and tutorials:
- Sign in to Amazon Sumerian with your AWS account
- Amazon Sumerian Interface tutorial
- Sumerian Basics: Creating a TV Room
- State Machine Basics tutorial
Step 1: Set up a New Scene
From the Dashboard, navigate to the scene Templates, and then create a scene using the Default Lighting template.
Click the Create Entity button at the top of the interface.
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
Select the Box entity by choosing it in the Entities panel or by clicking the box in the canvas.
With the Box entity selected, navigate to the Inspector panel on the right. Expand the Transform component.
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
- Choose Import Assets in the top menu bar.
Now that you’re in the asset library, search for and then add “Drone”.