Airplane scene
In this section, you’ll create the airplane that the player will control. It will fly forward while the player can move it up, down, left, and right.
Start your new plane scene with a CharacterBody3D
node named Plane
and save it.
You can find the 3D model for the airplane in the assets
folder, named cartoon_plane.glb
. The name indicates the model is stored as a binary .gltf
file (exported from Blender). Godot imports .gltf
files as scenes containing meshes, animations, materials, and other objects that may have been exported in the file. Click the Instance a Child Scene button and choose the plane model. You’ll see it appears as Node3D
, but it’s facing the wrong direction. Select it and set the Rotation/Y function to 180
in the Inspector feature, so that it points along the z axis, which is Godot’s “forward” direction. Note that typing the value directly is easier than trying to rotate the node exactly using the mouse.