I Programmed a Physics-Based Airplane! | Programming Projects 2.1

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 46

  • @rocketlaunchrHD
    @rocketlaunchrHD 4 роки тому +29

    Jesus, it's like we are the same person. Whenever I get interested in something you make a video about it the next day. Thanks lol.

  • @xXrandomryzeXx
    @xXrandomryzeXx 4 роки тому +10

    Why485 made really impressive flight physics. And they are so simple, but its so hard to recreate them XD

  • @manojpradhan943
    @manojpradhan943 4 роки тому +4

    How do you deal with this certain condition : Let's say you are in the middle of banked turn , rolled to your right and elevators are deflected . When it' s time to come out of the turn , I put my elevators back to zero , it immediately feels like a jerk . Which makes sense since I was going in circle a moment ago due to elevator deflection and now I'm not . Also when I come out of a banked turn without putting my elevators back to zero , I immediately start to pitch up rapidly ( because elevators are still deflected ) . I can't seem to find what stability system deals with this condition .

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому

      I'm afraid I haven't implemented any stability system that is specifically designed for that condition. My controller is extremely general and can be used for airplanes, rockets, and everything in between. Perhaps I will make it possible for the user to program their own controller in the future, but that will, unfortunately, have to wait a while. Right now I'm working on integrating my LOD planet with the vehicles.

  • @Astrelix
    @Astrelix 4 роки тому +4

    Your videos are amazing! I'm also interested in aerospace engineering, and I really like Unity, programming and modeling!

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому

      Thank you Astrelix! Love your videos too :) How's your game coming along?

    • @Astrelix
      @Astrelix 4 роки тому

      @@simonholmqvist1951 I'm currently working on the rocket control systems, then I will try to add a simple planet for it to lauch from. The only issue is I don't know how to make an atmosphere for the planet, since I don't know anything about unity shaders. Any idea?

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому

      Shader Graph can do wonders. I'd suggest trying to learn it if you just care about the final product. Learning shaders is pretty fun though, so I'd suggest trying that if you want / have the time. Here's a cool video about a planet with an atmosphere: ua-cam.com/video/xms7rSraGYw/v-deo.html

    • @Astrelix
      @Astrelix 4 роки тому +1

      @@simonholmqvist1951 I will take a look at it, thanks

    • @sino_diogenes
      @sino_diogenes 4 роки тому

      are we the same person? I'm doing Aerospace engineering next year in university.

  • @charliesaviation2552
    @charliesaviation2552 3 роки тому +3

    how do i get this game!

    • @simonholmqvist1951
      @simonholmqvist1951  3 роки тому +2

      github.com/Didgeridooblastblock/Physics-based-vehicles
      It's barely a game at the moment but here's the source code :)

  • @cate01a
    @cate01a 2 роки тому +1

    insane how damn common that model is in games. KSP, balsa flight sim, trail makers, etc. That wibble wobble is damn signature.

    • @plat216
      @plat216 Рік тому

      how to fix the wobble? doesn’t seem to be very apparent irl or any flight sim, not even in why485’s tiny arena combat

    • @cate01a
      @cate01a Рік тому

      @@plat216 I'd guess giving the contral surfaces smart stability assist using a PID

    • @plat216
      @plat216 Рік тому

      @@cate01a yeah that’s actually what I did and it works, however I know that irl not all planes had a flight control computer, and they still did not wobble like that, so I don’t know what to do

    • @cate01a
      @cate01a Рік тому

      @@plat216 maybe real life planes were designed smart: if the two wings are tilted up, the plane naturally corrects tilt. So you could probably do other smart designs that would make the plane self right itself and remain stable.
      Oh and stuff like having the center of lift above the center of mass improves stability too

  • @AliBaba-vw7mo
    @AliBaba-vw7mo 3 роки тому +4

    From what i can see, your physics simulation is based on a table lookup system whereby you do not simulate airflow over the wings, but merely lookup lift tables. Its a start, it woukd be interesting jf you dive into more in depth physics algorithms.

    • @simonholmqvist1951
      @simonholmqvist1951  3 роки тому +1

      Hello, thank you for your suggestion! There are ways to procedurally create the lift curves that I use in this video, but I haven't gotten around to implementing that quite yet. The lift curves give me the lift coefficient, which is one of the variables in the lift equation. It would be really cool to simulate the airflow more precisely, like in those airflow simulation softwares, but that would unfortunately be pretty heavy on the computer.

  • @walney2008
    @walney2008 4 роки тому

    hello, how to teach shooting with minigun machine gun and missile to helicopter with that green sight?

  • @renderererer3572
    @renderererer3572 3 роки тому +3

    The ATPL training videos don't exist anymore. 😕

  • @TheHermitcraft
    @TheHermitcraft 4 роки тому +2

    Shouldn't the tip of the plane be a bit more pointy?

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому +1

      Good point ;)

    • @Kasmuller
      @Kasmuller 4 роки тому +2

      @@simonholmqvist1951 out. Now. The door is over there.

    • @dainaferie5736
      @dainaferie5736 4 роки тому +1

      @@simonholmqvist1951 instead of releasing a source code ,canbu make a tut,I will be able to understand instead of just taking our work

  • @christercarlsson8776
    @christercarlsson8776 4 роки тому +3

    Great! Good

  • @_5bit_
    @_5bit_ 4 роки тому +4

    I like your video! as for the stabilization of flight im working on a PID controller just for that. Let me know if you need advice on how you could do it as-well!

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому

      Awesome man, thank you! I'll let you know if (or rather when) I need some help :)

    • @manojpradhan943
      @manojpradhan943 4 роки тому

      Hey Man I am exactly at this position right now . After successfully implementing lift and drag on my control surfaces I am now stuck with the stability issue . Any change in the elevator sends my plane into tiny oscillations which have to be cancelled out manually . Can you provide me any resources or help as to how to kill these oscillations as soon as possible and hold the pitch of my aircraft where I actually want it to be .
      One thing I want to know about the PID controller . Let's say PID controller decides +10 degree deflection is needed in the elevator to counter oscillation AT THIS moment , won't the actuator / hydraulics which move the control surface to that position will take their own time ( maybe half a second or so ) and in the meantime since we are not at our correct elevator deflection condition , aircraft pitches even further away from the required . So this look like a never ending chase . How does PID controller account for this delay ?

  • @jamesMcroy12
    @jamesMcroy12 4 роки тому

    Awesome video!

  • @amanda-linnbodin147
    @amanda-linnbodin147 2 роки тому

    thank you för ingenting simon, sänk musiken för fan

  • @silasanderson4542
    @silasanderson4542 4 роки тому +4

    it would be awesome if you can release the source code
    btw it looks great

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому

      Thanks! The source code will be released with the next video :)

    • @silasanderson4542
      @silasanderson4542 4 роки тому +3

      @@simonholmqvist1951 awesome I was hoping to implement some of your advanced physics into a godot space Sim I've been trying to work on

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому

      @okay All Right It has stall.

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому

      ​@okay All Right ​ I'm not familiar with the physical effect that keeps the aoa up during the stall. Could it just be due to stabilization software, something that fighter jets certainly have due to their instability? I've implemented a PID controller in my most recent version of the airplane which does keep the nose up when stalling. It seems logical that, if even the stabilators stall, the airplane would try to pitch down due to torque created by the drag on the rear control surfaces.

    • @simonholmqvist1951
      @simonholmqvist1951  4 роки тому

      @okay All Right Saw that video the other day and thought it was absolutely amazing! My next video will be quite similar to his.

  • @spingebill8551
    @spingebill8551 3 роки тому

    This is like playing SimplePlanes but with extra steps lmao

  • @tombrendelokken2378
    @tombrendelokken2378 3 роки тому +1

    Hello, are you swedish