Rotating the Flight Controller - Lets Make a Side Scrolling Shooter - Part 2 @WorldOfZeroDevelopment
Rotating the Flight Controller - Lets Make a Side Scrolling Shooter - Part 2  @WorldOfZeroDevelopment
Uploaded June 2018 | Updated November 2026, 2 days ago
Lets make a visual upgrade for our basic flight controller we build in the last video. We're going to make our ship rotate in the direction it is moving so its not just a cube moving up and down the screen!

To control the rotation we'll add a fourth component to our flight controller that is designed specifically to handle this visual effect. It will read from the previously defined `ShipInput` and apply a smooth rotation to an "art" placeholder object. The smooth rotation is accomplished using a `Quaternion.Slerp` combined with the `Time.deltaTime`. This creates a a smooth curve towards the target angle that slows down the closer it gets to the target angle.

This video does a good job of demonstrating the different between a Lerp (Linear Interpolation) and a Slerp (Spherical Linear Interpolation): youtu.be/uNHIPVOnt-Y

The World of Zero Discord channel is open to anyone. You can join and talk software engineering, development and more: discord.gg/hU5Kq2u
Rotating the Flight Controller - Lets Make a Side Scrolling Shooter - Part 2Validate Unity Inspector Input with OnValidate - Quick TipRunning a Minecraft Server in DockerCreating a Context Menu in Custom Unity EditorsGetting Started with Pathfinding using Dijkstras AlgorithmLearning to Deserialize YAML in C# with YamlDotNETSpinning In Circles and Other Mischief - Building Asteroids VR - Day 2Tracking Rigidbody Velocity in Asteroids VRIntroducing Testing into our PlatformerThe Search for Objects - Unity Observer - Part 1Using Your Terminals Directory Stack to Work With Multiple DirectoriesUsing Polar Coordinates in Unity Shader Graphs
World of Zero |

Rotating the Flight Controller - Lets Make a Side Scrolling Shooter - Part 2

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER