Cesium Flight


Using the Cesium plugin to import google map tiles. I created mechanics for a small plane to fly around on earth.

Player Inputs


The Player Input script uses the Unity new Input System to initialize the player inputs. These inputs are then sent to corresponding scripts such as the movement script and weapon script.

Movement Component


The Movement Component controls, well the movement of the plane/player. I used transform.Roate to control most of the plane point direction. Then transform.Translate to actually move the plane forward. I also check for stalling to keep the player from flying to high in the sky.

Weapon Component


The Weapon Component controls, well the movement of the plane/player. I used transform.Roate to control most of the plane point direction. Then transform.Translate to actually move the plane forward. I also check for stalling to keep the player from flying to high in the sky.

structure


Results