Unreal Engine NPC Car Tutorial: Speed Control

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 29

  • @fyrefighter13
    @fyrefighter13 19 วันที่ผ่านมา +2

    If you're wondering how to get a vehicle to speed up or slow down based on curves and road conditions, implement logic that calculates stopping distance based on current throttle and braking intensity. Find the braking friction, wheel torque, and engine torque values in the UChaosWheeledVehicleComponent, and then calculate how much brake or throttle is needed to get from the current speed to the target speed by the given distance.
    It's exponentially more beneficial than setting hard throttle or speed limits, as the speed changes are adaptive to the road conditions.

  • @yaohanding2600
    @yaohanding2600 ปีที่แล้ว +3

    Thank you so much for updating this speed control tutorial in UE5.1!

  • @Extrone
    @Extrone ปีที่แล้ว +3

    Thanks for the gear ratio equation, been trying to find it forever.

  • @oliverholmberg1462
    @oliverholmberg1462 ปีที่แล้ว

    Thank you for making a new tutorial on this!!

  • @skakun.design
    @skakun.design 2 หลายเดือนก่อน

    Thanks for video! How you did the GetPath function? Whithout it my logic doesn't work correct. My car start move forward immediately when i start scene wihout this function ((

    • @Seredias.
      @Seredias.  2 หลายเดือนก่อน

      @@skakun.design Get Path controls only the Steering. The Throttle Input the Speed.

  • @MannDevani
    @MannDevani 7 หลายเดือนก่อน

    Thank you, but can you tell me how do i lower speed on turns?

    • @Seredias.
      @Seredias.  7 หลายเดือนก่อน

      By placing a Blueprint Actor with a Box Collision where the turn is to set the Target Speed on overlap. Very similar to my Path calculation Tutorial: th-cam.com/video/H8b2p7L1j1c/w-d-xo.htmlsi=4dKsRJ_-lPgfyITF

  • @Зритель-ш6у
    @Зритель-ш6у 8 หลายเดือนก่อน

    Maybe you know how to make a timer for an AI so that it starts when the race starts and stops when it arrives at the finish line? I would be glad to see your video on solving this issue.

    • @Seredias.
      @Seredias.  8 หลายเดือนก่อน

      Did you already watched my Race Game Tutorial Series: th-cam.com/play/PLSc29g4OjKUN36Fp7HsNpGV7OFjqmkKbf.html&si=w0n4hMs5SRrM5-Iu

    • @Зритель-ш6у
      @Зритель-ш6у 8 หลายเดือนก่อน

      @@Seredias. Yes. There is no timer for character. You only have it for vehicle.

    • @Seredias.
      @Seredias.  8 หลายเดือนก่อน

      @@Зритель-ш6у Oh you mean for Human AI. Well its a simple timer so it's not that complicated to adjust.

    • @Зритель-ш6у
      @Зритель-ш6у 8 หลายเดือนก่อน

      @@Seredias. I can't do it myself. I need a position in the race among Human AI. You can make a video tutorial for Human AI.

    • @Зритель-ш6у
      @Зритель-ш6у 8 หลายเดือนก่อน

      @@Seredias. I need a time timer not from my Human, but from Human AI. We also need Human's position in the race among Human AI.

  • @ap10235
    @ap10235 10 หลายเดือนก่อน

    Hii thanks can you make the indicator right and left. The car is about to turn on left so the indicator will flick

    • @Seredias.
      @Seredias.  10 หลายเดือนก่อน

      This here should give you an Idea of the Concept: th-cam.com/video/wCtxb-yHMPc/w-d-xo.htmlsi=3ktCRzwVGXaCAURD

    • @ap10235
      @ap10235 10 หลายเดือนก่อน

      @@Seredias. Thanks ♥️

  • @sakshinadarge8125
    @sakshinadarge8125 9 หลายเดือนก่อน

    how did you add the street bridge to unreal project

    • @Seredias.
      @Seredias.  9 หลายเดือนก่อน +1

      Link in this Description: www.unrealengine.com/marketplace/en-US/product/automotive-bridge-scene

  • @raulguedes7247
    @raulguedes7247 11 หลายเดือนก่อน

    Hey man, this is working great. But i need something extra. Im trying to tell Unreal to stop or increase accelaration when in contact with certain textures. Can you help me?

    • @Seredias.
      @Seredias.  11 หลายเดือนก่อน

      You could combine it with this System: th-cam.com/video/YKp19_4P2Fk/w-d-xo.htmlsi=ieJXgu3ND5yNS5F4

  • @raulguedes7247
    @raulguedes7247 10 หลายเดือนก่อน

    Hey man. Works great. I ll just like to add like a condintion that if a car is cruisin in a certain floor(texture) the throttle shuts. Can you help?

    • @Seredias.
      @Seredias.  10 หลายเดือนก่อน

      You could combine it with this System: th-cam.com/video/YKp19_4P2Fk/w-d-xo.htmlsi=ieJXgu3ND5yNS5F4

  • @shanliumoshi7904
    @shanliumoshi7904 ปีที่แล้ว

    thanks

  • @lo1d
    @lo1d ปีที่แล้ว

    very good tutorial but how can I make it to stop

    • @Seredias.
      @Seredias.  ปีที่แล้ว

      By setting the Throttle Input to 0 and the Handbrake Input to true.

  • @rifat.ahammed
    @rifat.ahammed 10 หลายเดือนก่อน

    Thanks

  • @laurentiupolesciuc2817
    @laurentiupolesciuc2817 ปีที่แล้ว

    Hey bro, could you make a tutorial on how to make something similar to Gran Turismo driving school? Various tasks, awards, gold, silver, bronze, etc. and when the task is completed, open the next task

    • @Seredias.
      @Seredias.  ปีที่แล้ว

      Technically yes, but there is not much to explain. It basically "Drive to the finish in range of time goal". That would be this one with obstacles: th-cam.com/video/pVlR8B8AM8E/w-d-xo.html&feature=share7