Godot Aerodynamic Physics Tutorial (v0.5.0)

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 32

  • @trekintosh
    @trekintosh Месяц назад

    Ooo, this is really impressive and will be of great help to me Eventually! Thanks!

  • @danesmith624
    @danesmith624 Месяц назад

    This is awesome! Thanks for making such a cool plugin!

    • @addmix
      @addmix  Месяц назад

      I love to do it! Let me know if you have any feedback about the plugin.

  • @V_07th
    @V_07th Месяц назад

    LEGEND, you have no idea how much I admire you and your work

    • @addmix
      @addmix  Месяц назад +1

      Thank you. I'm just glad people are putting it to good use. Cant wait to see a generation of flight sims made in Godot.

  • @wulffoperator1393
    @wulffoperator1393 13 дней назад

    Bro, keep going up. Good job🎉🎉🎉🎉

    • @addmix
      @addmix  12 дней назад

      Thanks for the encouragement!

  • @jupiterbjy
    @jupiterbjy 2 месяца назад

    Subbing this channel, never can have enough aerodynamic freedoms.

    • @addmix
      @addmix  2 месяца назад +1

      Absolutely! Maybe my plugin will create a dedicated Godot flight sim community

    • @jupiterbjy
      @jupiterbjy 2 месяца назад

      @@addmix guess I should make some prototype flight sim demo with infinite terrain, I implemented chunked marching cube but it was bitting dust as I had no use of it haha
      feels like I'm keep deviating from what I initially wanted to make but this is some tempting one. Also wanna create simplified icon for this too! dk if I can still draw tho, havent drawn like near year

    • @addmix
      @addmix  2 месяца назад

      @@jupiterbjy I ended up using GodSVG (it's a Godot tool) to make the plugin node icons. If you have any ideas for icons I would love to hear them.

    • @jupiterbjy
      @jupiterbjy 2 месяца назад

      @@addmix oh I meant asset icon itself looks nice close up but when small it's hard to identify, I don't think I can do a good job but will try making one regardless and see if it looks good

  • @Jun-o3l6t
    @Jun-o3l6t 2 месяца назад

    Cool tutorial, thanks bro

  • @okokokokokokokokokokokokok4360
    @okokokokokokokokokokokokok4360 24 дня назад

    tutorial worked great! do you have a tutorial up about the camera effect or if you could recommend a tutorial ? thanks

    • @addmix
      @addmix  23 дня назад

      The demo project is linked in the description, if you want to look at the code.
      All the camera code does, is set the camera's position/rotation as the linear and angular velocity of the airplane, multiplied by some factor to exaggerate the effect.

    • @okokokokokokokokokokokokok4360
      @okokokokokokokokokokokokok4360 16 дней назад

      @@addmix thanks a lot it worked flawlessly! i was wondering what I would adjust to make the wings more smooth. it feels kind of snappy when it changes. thanks again!

    • @addmix
      @addmix  12 дней назад

      @@okokokokokokokokokokokokok4360 The AeroControlComponent has input smoothing options which can be enabled. Or, flight assist being used, which also acts as input smoothing (in a way)

  • @John_Henry83
    @John_Henry83 Месяц назад

    I wanted to know you you got the HUD view up. Be warned that I am a beginner so I may have several stupid newbie questions

    • @addmix
      @addmix  Месяц назад

      If it works better for you, this is a Godot community discord I am very active in. It will be a good place to ask questions and get help with problems
      discord.com/invite/xDGSQHyGkt

  • @KidsCoulter
    @KidsCoulter 2 месяца назад +2

    sadly in 4.1.1 i found an error in the script that i do not know how to fix, what godot version is this meant for?

    • @addmix
      @addmix  2 месяца назад

      I have kept the plugin up to date for the latest Godot versions. I did look into the issue, and it looks like the problem is that in 4.1, static typing in for loop conditions didn't exist. I suppose that makes the plugin only available for 4.2+, however if you must use 4.1, you should be able to remove the static typing from the for loops.
      for substep : int in SUBSTEPS:
      In this example, the static typing is the ": int" part, which only exists for a slight performance boost, and some better editor auto-fill.

    • @KidsCoulter
      @KidsCoulter 2 месяца назад

      @@addmix thank you so much!

  • @ДаниилВалов-ж1э
    @ДаниилВалов-ж1э Месяц назад

    Tell me how to throttle up and throttle down the propeller, I can't get it

    • @addmix
      @addmix  Месяц назад

      I'm working on an expanded control system which covers propellers, and allows for more extendability. In the meantime, you can use the propeller's angular_motor property to control the speed of the propeller.
      An example would be: `$AeroPropeller3D.angular_velocity = Vector3(0, $AeroControlComponent.throttle_command * 100.0, 0)`

  • @-shadowed-
    @-shadowed- 2 месяца назад

    Cool :)

  • @RTSFan1337
    @RTSFan1337 2 месяца назад

    So ara analogue controls possible if you set input action to a control stick?
    Gotta play arround a bit with this :)

    • @addmix
      @addmix  2 месяца назад

      Yup! Any control that you can bind in the InputMap works properly. Now, the only thing to wait for is for Godot to add mouse motion to the InputMap.

    • @RTSFan1337
      @RTSFan1337 2 месяца назад

      @@addmix Sounds great - I don't need mouse input.

    • @THISISAUNIQUEHANDLEDONTCOPY
      @THISISAUNIQUEHANDLEDONTCOPY 2 месяца назад

      @@addmix Are there any workaround or manual implementations of this style of behaviour which could be achieved with something like mousemotion in an InputMap? Where the mouse positions, Y axis is bound to the pitch and the X axis to the roll. I am using your plugin and its been really really good. It would also be nice to be able to manually control the input values through code for implementing PID controllers, custom flight assist, War Thunder Style cursor based control and a simple mouse control system where if you move your mouse move up the plane pitches down with the centre of the screen being idle position for the controls. Although you havent implemented these yet, I was wondering which scripts to mess with to configure this to my use-case without messing everything up.
      Another of topic thing, when I add Wheels3D or whatever the node is called, the whole flight simulation doesn't work and the plane just behaves like the plugin doesn't exist!! Even after removing the wheels the issue isn't fixed. I had to restart making my aircraft btu it was just a prototype. I dont know if this just me or wheels break the sim.

    • @addmix
      @addmix  2 месяца назад

      @@THISISAUNIQUEHANDLEDONTCOPY Yes, there is a way to override the custom control, I believe I had mentioned it in the video, but you can disable the "use_bindings" property on the AeroControlComponent, and then from a script you can manually set control, throttle, and brake inputs. If you join my discord server I can give you the real examples I use in my flight sim project.
      The AeroControlComponent has a flight assist, using the FlightAssist resource, which you can extend/modify if needed. The PIDs are adjustable. The flight assist also has a "target direction" mode, which would be used to make War Thunder style controls, you give it a direction vector, and the plane will try to fly in that direction. You would have to set up a system to get the direction vector from the mouse in screen space, and pass that in, as the target direction is in global space. You can enable target direction inside the FlightAssist resource from the editor (or from a script), as an example, you could set the target direction like this: $AeroControlComponent.flight_assist.direction_target = ... #set it to whatever target direction you want
      In fact, I extended the AeroControlComponent script for my F16. Inside _physics_process, I grabbed the input values from the throttle and stick, and applied them to the control_input and throttle_input variables inside the control component. (currently you have to disable use_bindings on the control component for this to work)
      At one point there was a bug that cause VehicleWheels to interfere with the aerodynamic physics, but that should have been fixed a few months ago. Are you using the latest version of the plugin?

  • @HiveQu33n
    @HiveQu33n 2 месяца назад

    nice

    • @addmix
      @addmix  2 месяца назад

      Thanks!