Simple Physics Based Helicopter Controller in Unity

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

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

  • @piggyplejer6443
    @piggyplejer6443 10 месяцев назад +2

    This video was great I learned a lot. I wish you got more people to support you!

    • @b3agz
      @b3agz  10 месяцев назад +1

      I appreciate that!

  • @Massive-3D
    @Massive-3D 2 года назад +2

    i like how you actually included the backward movement at 1:17 "etcetera" lol

  • @Unr3aler
    @Unr3aler 2 года назад +1

    Hello, great work. I am still learning basics of Unity but your videos are great, can not wait to watch them all eventually. Cheers.

  • @RichardHillUK
    @RichardHillUK 2 года назад +5

    Great tutorial, thanks. Just a small thing, it would be great if you could pause for a couple of seconds after editing the code and switching back to Unity. A couple of times I couldn't see what the last bit of code was.

  • @JtagSheep
    @JtagSheep 2 года назад +1

    Awesome stuff, lovely and simple and can be very easily adapted to give various extra characteristics if so desired. After the plane video I did some experimenting with the helicopters and ended up adding three main extras. A swashplate to actually tilt the rotors forwards/backwards left/right while lifting from the rotor.position in the rotor.transform.up, pitch to the rotor blades which is used to calculate a final lift value and finally a very basic engine script, rpm is calculated using an animation curve from the throttle input then the lift if calculated from said rpm along with blade pitch. One major thing I came across with different shaped helis when trying to add realistic colliders in places such as the skids, body and tail was the center of gravity seemed wrong, the heli would flip over randomly if cog was too high and seem to take forever to move if cog was too low. A simple fix for this was to add an empty gameObject as a child of the helicopter and set the rb.centerOfMass to the empty gameObject position in the start method, doing so will set a custom cog point which will require some experimenting with the position of the empty gameObject to get just right but I ended up with a fairly balanced helicopter after some testing.

    • @b3agz
      @b3agz  2 года назад +1

      Great work! You did your homework lol

  • @ВладВезерьян
    @ВладВезерьян 6 месяцев назад

    Where can I bind axises Roll pith and yaw?

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

    Hello, it gives me an error: Input Axis Pitch is not setup, how do I solve this problem? :/

  • @atilliator
    @atilliator Год назад

    bump up that angular drag to stop the out of control spinning

  • @junaidjamshed8104
    @junaidjamshed8104 2 года назад +2

    Please can you provide the source code?

  • @MacDev47
    @MacDev47 Год назад

    Which visual studio version are you using?

  • @henri0515
    @henri0515 Год назад +2

    great tutorial ! if someone could post the code here to help would be great to compare I did something wrong andI cant get the line 41 of his code where he clamp the throttle :/ .
    I also really like his tutorial of the plane

  • @saminmohammed261
    @saminmohammed261 Год назад +1

    Hi. Loved the tutorial. But I'm having some problems with the helicopter automatically flying upwards at breakneck speed as soon as I hit play. I'm fairly positive it's because of the clamp component because It isn't shown in the tutorial. Some advice on a fixwould be appreciated

  • @Deaker24
    @Deaker24 2 года назад +2

    I think a motorcycle next they are hard I've tried

  • @junaidjamshed8104
    @junaidjamshed8104 2 года назад

    Keep up the good work

  • @ruudvangaal7215
    @ruudvangaal7215 10 месяцев назад

    Why use ForceMode.Impulse and not ForceMode.Force?

  • @rooster56100
    @rooster56100 9 месяцев назад +1

    q and e aren't doing anything for me, am I missing something...everything else works fine, and no errors.

  • @alexanderg3696
    @alexanderg3696 2 года назад +2

    Still waiting for that minecraft part 30

  • @josimar8497
    @josimar8497 2 года назад

    Great video!!

  • @potatz3142
    @potatz3142 Год назад

    Hey, for some reason I keep getting code errors even though I've looked through my code and yours countless times... I keep getting the CS0106 and CS8803 error codes.

    • @potatz3142
      @potatz3142 Год назад +1

      hey... is anyone going to respond to this or should i just use the unity forums? i feel like i should wait and see if b3agz will respond.

  • @StigDesign
    @StigDesign 2 года назад

    Nice, Love it :D

  • @lowelegend
    @lowelegend Год назад

    Does this work with the new input system?

    • @b3agz
      @b3agz  Год назад

      You'll need to modify the lines where we capture inputs but other than that it should work the same

    • @potatz3142
      @potatz3142 Год назад

      i've tried commenting... I've been getting some errors and so far nobody has responded in the last week-ish... But from what i've seen it should, except im getting errors, so cant say for sure.

  • @pumpkindev4506
    @pumpkindev4506 Год назад

    Amazing stuff. Can you make a tutorial on Simple Physics Based Train (instead of using waypoints to move train)

  • @EibarFathallah
    @EibarFathallah Год назад

    can you make 2d bird fly controller?

  • @dwaynebiggs
    @dwaynebiggs 2 года назад

    Superb

  • @胡桃-n7y
    @胡桃-n7y 7 месяцев назад

    Nice video for me ! But could you please share the Code by content . It is hard for noob to understand the logic of the code and run it in Unity.

  • @gabrielwhite9881
    @gabrielwhite9881 2 года назад

    @b3agz i will definitely steal that code when i will work on a helicopter.. :D

  • @yahya-zr1yw
    @yahya-zr1yw Год назад

    Tank you (:

  • @sakbiulalom5849
    @sakbiulalom5849 Год назад

    add sounds

  • @ultrawaveyt5582
    @ultrawaveyt5582 2 года назад

    motorcycle perhaps?

    • @b3agz
      @b3agz  2 года назад +2

      Bike's are on the list 👍

    • @ultrawaveyt5582
      @ultrawaveyt5582 2 года назад

      @@b3agz thanks! You have no idea how many failed attempts I have lol