Realistic airplane in Unity!
Learn to make a physics-based airplane with control surfaces, thrust, and brakes!
Based on Ivan Pensionerov’s aircraft physics system:
Chat with us on Discord:
Links:
Aircraft Physics System
Finished Code
Mountain Asset
Runway Material Asset
Skybox Asset
Music:
All credit goes to Antti Luode
Timestamps:
00:00 Intro and Demo
00:52 Clone Aircraft Physics GitHub
02:38 Explain Aircraft Physics
08:57 Add Thrust Control
13:21 Add Ground Brakes
16:54 Add Flaps on the Wings
29:09 Small Fixes and Cleanup
34:31 Outro and Flying
Jump Trajectory
29.09.2023Nice video! Some thoughts about the part with aspect ratio correction. The tag and hard coded aspect ratio for wings is quite an ugly hack, as I'm sure you are aware. On the other hand I understand, that you kind of had to do it this way to avoid significant rewrite.For my video I made a plane with the wings splitted in two parts and it flew fine. I'm curious what was the problem you've encountered? Dispite the lack of problems in my case I think I should make some changes to the system. I probably should make the aspect ratio an independent parameter from the surface size, so it doesn't affect surface area. It's kind of counterintuitive, so I've not thought about it before. But in the case of surfaces that are part of a bigger one it makes sense. I need to do some research and also ponder on how to make it not too wierd from a user perspective.Thanks for pointing it out! I'll make an update when I'm done with my exams.
Kaushal Jha
29.03.2022very informative, great job!
Rezha Scarlet
29.03.2022nice keep it up
Walney moreira klein
29.03.2022Hello, I loved your project, it will help me in my studies, today I play fsx steam edition and I loved the cessna 172, rs, let me ask, is there a way to generate maps, based on google maps, google earth, and join this project? if so, could you teach?
Walney moreira klein
28.03.2022what steps, if you want other planes like boeing? downloaded from the internet? have control for helicopter?
JAYAKUMAR J
28.03.2022thanks dude my son did a cool game with this video
MilchBrocken
28.03.2022Would be nice if you help me. It's not working. Idk why but if I do this the plane is not going up and down
Adduck
28.03.2022Nice video, tell me what do you think about physics (1-10) and if that can work in sailplane sim
Adrian Prophet
28.03.2022Great video- thank you SO much! 1 question though- I'm a bit lost on why you went through so much trouble to implement the flaps. I'm a bit confused on their function. are these the flaps that would engage before landing? Or do they make the aircraft more responsive to any given input?
Thanks,
Adrian
Druzhe
28.03.2022wow, some time before i picked up THE SAME PLANE!
Vilius Rinkevičius
28.03.2022Thanks a lot! You are getting a subscribe and like from me!
Mr. Manro
28.03.2022Please make tutorial a submarine ship PLEASE DUDE 🙏🥺
Joy Pierre
28.03.2022Hey, I was wondering if I can ask for your help🙏. I'm working on a Masters project and I wanted to add a scoring system to this airplane system.
I wanted to make it so when the aircraft collides into floating game objects, points are added to the GUI on the canvas. I tried to add this script on a cube object, but it doesn't work (See below)😢. Any suggestions? Would really help me showcase your flight system for my Masters project. (P.S your work is credited!!😅)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ScoringSystem : MonoBehaviour{
public GameObject ScoreText;
public int theScore;
void onTriggerEnter(Collider other)
{
theScore += 50;
ScoreText.GetComponent<Text>().text = "SCORE: " + theScore;
Destroy(gameObject);
}
Mesrati Dz
28.03.2022thanks
CraftysPlace
27.03.2022hey so i just tried this but yet nothing worked i got 999 errors when i just did exactly what you did it got curopted?
Hammy Havoc
27.03.2022What are some good tips to improve immersion/realism when flying? It can feel a little… flat, or like moving across a void.
Tps1590
27.03.2022I am not getting the option ''Get bash here'' is there any option to bring it?
nutman
27.03.2022shiiiiit ima be makin the next msfs
Eric Castro
27.03.2022This is not a tutorial. This is piece shit full of errors and you don't understand the code.
Kıvanç Kahraman
27.03.2022My example scene not working can someone help?
Mintvbz
27.03.2022I downloaded and imported the assets.. but the airplane will not even fly or animate!
JUNIOR MASTER MIND
27.03.2022SIR,I AM FOLLOWING YOU FROM A LOT OF TIME AND YOUR TUTORIALS ARE ALWAYS AMAZING AND BENEFICIAL…I HAVE ALSO OPENED A CHANNEL TO SHARE BASIC INFORMATION ABOUT COMPUTERS…..PLEASE SIR GIVE ME A SHOUT OUT.IT WILL HELP ME A BIT TO GROW
THANK YOU
張小秋
27.03.2022How to control camera to fixed at horizontal
Movies For You
27.03.2022where do i get the plane from ?!?!?!?
Ezio Wayne
26.03.2022What dumb tutorial
Jack Rubiralta
26.03.2022How does this video only have 19,000 views?
Its too good to only have that many views
bracesport
26.03.2022awesome stuff – @27.57min you can see the animation overlaid in the game window – how do I enable that?
Fortnite Giftcard
26.03.2022Can you please do a video on just setting up everything and where everything goes like the scripts for example because the project in the zip file did not work and I had to make my own project with nothing set up
Base Raindrop756
26.03.2022Please make a more in-depth tutorial on how to set everything up because nothing is where it should be in the scene and nothing is working
wabba xt
26.03.2022Cool tutorial also why have you stopped uploading videos
Kevin InDevin
26.03.2022Why are you not making new vids
Victorfiy
26.03.2022WHICH INPUT SYSTEM IT USES NEW OR OLD
9NJA gaming
26.03.2022Errors so many errors