How to Make an Airplane in Unity

60,734
0
Published 2020-08-30
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:    • Realistic Aircraft Physics for Games  

Chat with us on Discord: discord.gg/gmTFQDF

Links:
Aircraft Physics System github.com/gasgiant/Aircraft-Physics
Finished Code github.com/skiwee45/Airplane_Tutorial

Mountain Asset assetstore.unity.com/packages/3d/environments/land…
Runway Material Asset assetstore.unity.com/packages/2d/textures-material…
Skybox Asset assetstore.unity.com/packages/2d/textures-material…

Music:
All credit goes to Antti Luode www.soundclick.com/artist/default.cfm?bandID=12770…

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

All Comments (21)
  • @JumpTrajectory
    Nice 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.
  • How does this video only have 19,000 views? Its too good to only have that many views
  • @bracesport
    awesome stuff - @27.57min you can see the animation overlaid in the game window - how do I enable that?
  • @ChookyChuck
    Very Nice, I have background in writing software for military flight sims and aeronautical engineering. I am currently playing star citizen and I am frustrated by how Arcady the flight model is. I am probably in the minority for this but I keep thinking modelling the physics is probably not much harder than an ad hoc arcade flight model when you have fleet of ships. Good work Ice Pops and Jump Trajectory.
  • @HammyHavoc
    What are some good tips to improve immersion/realism when flying? It can feel a little... flat, or like moving across a void.
  • @fetusness
    Great 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
  • Can 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
  • @walney2008
    hello, could you teach how to put the cessna172 instrument panel like the flyght simulator? and how to configure a new plane as a boing for example?
  • @be_calm2372
    My task is to recieve input from PLC and control the airplane rather then keyboard keys, is it possible? by modifiying this video code?
  • @jk2kii1
    thanks dude my son did a cool game with this video
  • Please 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
  • hey so i just tried this but yet nothing worked i got 999 errors when i just did exactly what you did it got curopted?
  • @walney2008
    Hello, 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?
  • @Wabbaxt
    Cool tutorial also why have you stopped uploading videos
  • @walney2008
    what steps, if you want other planes like boeing? downloaded from the internet? have control for helicopter?
  • @Mr.Epsilion
    Please make tutorial a submarine ship PLEASE DUDE 🙏🥺