How To Make Drifting Game In 5 Steps | Beginner Tutorial In Unity

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024

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

  • @tvm4559
    @tvm4559 2 ปีที่แล้ว +36

    I came looking for copper and I found gold. Honestly, I just wanted to understand drift physics and I learnt about skid marks too! This is amazing, you MUST make more tutorials.

  • @arinswadi42
    @arinswadi42 2 ปีที่แล้ว +8

    This is a really underrated channel and definately 100% deserves more subs.

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

    I love the quick videos, not many people do this, if I want a long drawn out explanation then Brackeys is where I will go, but short sweet game ideas are very welcome, I have subscribed and I will definitely look out for future videos

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

      Me too, that’s why I do them. The world needs more of it!

  • @uncertawn
    @uncertawn 2 ปีที่แล้ว +6

    Finally found a good tutorial. I've searched the entire youtube to find this! Thank you

  • @GwydionV
    @GwydionV ปีที่แล้ว +2

    Its a shame that it seems you've stopped with your videos because they're very good in how much you present in such a short time with such great quality.
    This has been very helpful in helping me understand a concept ive been looking for thank you.

  • @nahrungdiesattigt9338
    @nahrungdiesattigt9338 11 วันที่ผ่านมา

    a beautiful project and all solved with just 37 neat lines!

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

    I saw many tutorials on car physics. This was by far the most logical, concise and comprehensive.

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

    This style of video is amazing and really unique, can't wait for your channel to blow up.

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

      Thanks for the support!

    • @abdurrazzaque8435
      @abdurrazzaque8435 2 ปีที่แล้ว

      @@oneminutegames7308 can you make a ship controller and water physics and shaders

  • @bernard4180
    @bernard4180 2 ปีที่แล้ว +1

    You deserve the world man, simple , easy, clean, and with explanation, very thank you for your video, from Brazil 🙌🙌

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

    Hey man you’re a legend. I’ve been trying to make a game where you drift around exactly like this and found this video. Thanks a lot!

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

    LOL. The lawnmower idea is so cool.
    Thanks for the tutorial.

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

    This is so much better than that WheelCollider abomination! The only thing I have changed is the fact thst I am using RigidBody applying force, setting drag and angular drag to it and so the physics engine do the same calculations but we also have some physiscs going on. I think it should be possible to use wheel collider for suspension simulation, so the wheels will jump on obstacles but all the wheels will not receive torque acting like a secondary wheels.

  • @quartzar
    @quartzar 2 ปีที่แล้ว +1

    Holy balls, please make more videos, this is exactly the content I needed to get inspired and feel like making games in unity is accessible! I love it

  • @officialfadi
    @officialfadi 2 ปีที่แล้ว +7

    One of the most useful tutorials ever! Would love to see a slower paced tutorial though! Because I’m new and can’t keep up lol

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

      In the future there might be longer videos as well, subscribe to be notified. Until then, I suggest you try individual parts of the code in separate projects and building something with it just to understand them better.

    • @officialfadi
      @officialfadi 2 ปีที่แล้ว +1

      @@oneminutegames7308 Oh of course I subscribed you deserve way more subscribers! The style and editing is very clean! I am currently watching your videos at a slower pace to figure out parts of them! Thanks for the reply

    • @lifeisbeautiful5998
      @lifeisbeautiful5998 2 ปีที่แล้ว

      @@oneminutegames7308 subed and shared ..just make 60 more one minute toutorial step by step..your video are strongest

  • @knallkasten5159
    @knallkasten5159 3 หลายเดือนก่อน

    i just started today by downloading unity and my goal was at least having a movable car. this helped me a lot and im looking forward for more such videos!!

    • @oneminutegames7308
      @oneminutegames7308  3 หลายเดือนก่อน +1

      Awesome! Good to hear that. Keep up 👍

  • @beanieguy5313
    @beanieguy5313 ปีที่แล้ว +1

    You’re content is amazingly helpful and the style of video is well thought out. I Appreciate it.

  • @Radikal_Studios
    @Radikal_Studios 2 ปีที่แล้ว

    Probably the best unity tutorial ive watched

  • @meehdrescher
    @meehdrescher 2 ปีที่แล้ว +1

    I just realized you only have 522 subs.
    Bruh. You deserve >100k.

  • @houssamboudiar7689
    @houssamboudiar7689 2 ปีที่แล้ว +1

    Please Make Another videos you turorials are very perfect and amazing

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

    This video is incredible. I love this format so much and it's quick and to the point. I'm going to implement my game tonight and add Machine Learning agents as AI to try and race against the player. So happy to have come across your channel!

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

      Thanks, means a lot. Good luck with the project, seems like an interesting challenge 👏

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

    This is gold! Keep it up! Here's an idea: if you can, how about a short video about procedural animation with inverse kinematics like spider legs. Bet a ton of people would love that! When I was first starting off with procedural spider legs there was this short video about how to do it but it never goes thru it like you would. Would be a ton of help and it would fit perfectly on the grass cube.
    Although it would be sick to have it crawl around the cube. What I did with mine was use a rigidbody and use "hover pads" that wouldn't let go of the ground disguised as legs to get it to cling on walls... that would also be another dope idea "Hover Cars" yeah maybe go with that first and build the spider off of that in a different video? Either way, love to see what you come up with next!

  • @doctorsuper
    @doctorsuper 2 ปีที่แล้ว +1

    This is a great channel! Love it! I just wish you would upload more often.

  • @ACEAMIbuildsGlades
    @ACEAMIbuildsGlades 2 ปีที่แล้ว

    please bring more videos like this a small car game would be appreciated i want to create so many things and this looks such a cute game to make.

  • @harddev9181
    @harddev9181 10 หลายเดือนก่อน +1

    Greate Work keep it up

  • @durvids474
    @durvids474 2 ปีที่แล้ว

    Amazing stuff, super underrated channel guys.

  • @ASouza-ut9kb
    @ASouza-ut9kb ปีที่แล้ว

    You are a genius! Thank you for the incredible videos.

  • @AstraGamesStudios
    @AstraGamesStudios 2 ปีที่แล้ว

    Thank u so much! Super high quality content! love it! Keep it up man!

  • @gurgle9849
    @gurgle9849 3 ปีที่แล้ว

    Dude, your videos are amazing! Thank you, and please keep it up!

  • @det.idiot10
    @det.idiot10 ปีที่แล้ว +1

    Thank you very much. :below three:

  • @ndaaspirantdefencelover8527
    @ndaaspirantdefencelover8527 ปีที่แล้ว +1

    Thankyou so much you help me alot ❤❤

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

    Thanks man .. this help me a lot.

  • @bigbeasttv6829
    @bigbeasttv6829 2 ปีที่แล้ว

    It s great to see your videos, simple and easy to sucess

  • @jvue3504
    @jvue3504 3 ปีที่แล้ว

    Cool presentation of the lesson

  • @z101ll4
    @z101ll4 17 วันที่ผ่านมา

    this perfect video that i need❤

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

    Hi buddy, It's been a while and I surely miss yours awesome videos. I hope you are well and get back soon :)

  • @OTZDarv
    @OTZDarv 2 ปีที่แล้ว

    thank u! u explain everything so well! ❤❤

  • @TheGonza6829
    @TheGonza6829 9 หลายเดือนก่อน +2

    Love the vid, its just what i was looking for. But im having trouble with the skid marks, they look god on the Scene tab but in the Game tab they are almost invisible. How do i make them less trasparent?

    • @oneminutegames7308
      @oneminutegames7308  9 หลายเดือนก่อน +2

      Maybe they are on the same plane as the floor and geometry is overlapping. Try lifting it up a bit.

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

      @@oneminutegames7308 i tried that, it needs to be super far from the floor, but if i put it on top of the car it looks weird.
      is there a way to give it priority, so you can see it through walls?
      and thanks for responding!

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

      For that you would need to write a special shader. I don’t have a straight solution, it needs a bit of research, try google or chatgpt.

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

      ​@@oneminutegames7308 I fixed it! the scale of everything was to small so the trails were thinking they were on the floor lol. making everything bigger fixed it. But now i have a new problem, because we are using transform.position instead of .addForce the car is clipping through walls, but i cant get the same feeling you did using addForce :(

  • @polychromeguy
    @polychromeguy 2 ปีที่แล้ว

    Loved this tutorial!

  • @orionprime2543
    @orionprime2543 2 ปีที่แล้ว

    Sir, you're the bomb💣won yourself a new subscriber

  • @Timothymukansi
    @Timothymukansi 2 ปีที่แล้ว

    Thank you. Definitely subscribing.

  • @luchoPueyo
    @luchoPueyo 2 ปีที่แล้ว

    Really awesome video. simple af to follow and super effective.

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

    Very nice! Thank you!

  • @heavygaming6596
    @heavygaming6596 ปีที่แล้ว +1

    I've tried implementing this in other game engines with quite good success although I have to ask some things.
    When MoveForce.Magnitude is 0, meaning when we are standing still. MoveForce.normalized should return nan and the script errors. How does unity handle it? Because my game throws errors. Its an easy fix with just one if statement but how does this code handle it?
    My second question is if there are any ideas how to implement vertical motion, so we can drive up ramps or bumps.
    Nice tutorial!

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

      Good observations. This code doesn’t handle corner cases like this since it’s focusing on teaching basic logic.
      For slopes it is the best to use physics and rigidbody component for movement instead (rigidbody.MovePosition).

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

    No racing game is complete without tire tracks, also 30 min of scrubbing through content packed into a nice 6 min video ... INSTA SUBBED and BELL!

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

    Great explanation, thank you! Can you make the same for Rigidbody control with Torque or give a hint and how to make it?

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

    WOW! I like your youTube channel!

  • @Loririri
    @Loririri 2 ปีที่แล้ว

    Super cool video! Could you give a hint on how you did the tilting threw the curves?

  • @kioka2
    @kioka2 2 ปีที่แล้ว

    Nicee, thank you! Any tips to make the car go reverse?

  • @souravdewan7653
    @souravdewan7653 2 ปีที่แล้ว

    Need more video like that

    • @souravdewan7653
      @souravdewan7653 2 ปีที่แล้ว

      Hello sir can you make same type of drift using whell colider and rigid body please

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

    I'm having real trouble getting the steering to work right, the car pretty much just turns in a wide circle either clockwise or anticlockwise rather than turning like yours. Am I missing something simple?

    • @Gierownik_Studios
      @Gierownik_Studios 2 ปีที่แล้ว

      Same Problem Here

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

      Please make sure that the Empty for the car model has the position reset to 0 for the X, Y and Z axis. Then check again if it works. If not, then do this:
      1. Delete all the car components and Empty;
      2. Create a new Empty, call it Car or CarModel, or whatever you like, and reset its position to 0 for all of the axis. Make sure also the rotation is 0 for all the axis;
      3. Remodel the car now since the Empty has all the rotation and position reset;
      4. Code the CarController;
      5. Test it and now it should work.
      Hope I have helped!

  • @MR.OOFofficial
    @MR.OOFofficial 8 หลายเดือนก่อน +1

    For some reason my car is going backward without me pressing anything?

  • @Garhuf
    @Garhuf ปีที่แล้ว +1

    you have a tip how to make a camera follow the car?

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

      Simplest is to parent it under the car object. Better approach is to move the camera towards the car -> Camera.transform.position += (Vehicle.transform.position - Camera.transform.position) * Time.deltaTime * CameraSpeed + CameraOffset

  • @eliaslessa7361
    @eliaslessa7361 2 ปีที่แล้ว

    Great tutorial, Thanks, ✌

  • @herobrine_901
    @herobrine_901 2 ปีที่แล้ว

    Thanks you really helped me :)

  • @bogdan527
    @bogdan527 2 ปีที่แล้ว +1

    Instructions unclear my car goes up and down when i press the moving keys😂👍

    • @oneminutegames7308
      @oneminutegames7308  2 ปีที่แล้ว

      Check the rotation of the graphics, make sure that the car looks in the direction of the blue arrow of the parent object.

  • @meAndAIsongs
    @meAndAIsongs 3 ปีที่แล้ว

    Nice! Thank you very much!!! 👍👍

  • @random_precision_software
    @random_precision_software 3 ปีที่แล้ว

    I hope you keep going with more videos m8?!

  • @keithpatience74
    @keithpatience74 2 ปีที่แล้ว

    Great tutorial. How would i go about making solid objects for a level such as ramps and barriers?

  • @prokeikas7284
    @prokeikas7284 2 ปีที่แล้ว +1

    Great tutorial. One problem. After adding the lerp function, my car moves very slowly and changing the speed/max speed doesn't help.

    • @Ufus.
      @Ufus. 2 ปีที่แล้ว

      ı have this problem too. But ı changed the movement speed and it works

  • @ragerungames
    @ragerungames 2 ปีที่แล้ว +1

    How you made grass sway effect and also the other thin is particle effects upon triggering to grass blade?

  • @miguelmonreal.8874
    @miguelmonreal.8874 ปีที่แล้ว +1

    How would you tie this in with UI button or a steering wheel?

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

    well the next-gen brackeys in here

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

      I love brackeys and this is a nice compliment, thank you

  • @nrdevs6074
    @nrdevs6074 2 ปีที่แล้ว +2

    it didnt work for me for some reason :/ idk why but it wont drift help pls

  • @shayanrostamzade9718
    @shayanrostamzade9718 2 ปีที่แล้ว

    That was a perfect instruction

  • @thelumberjack8838
    @thelumberjack8838 2 ปีที่แล้ว

    What an amazing video

  • @music2day5592
    @music2day5592 2 ปีที่แล้ว +1

    @One Minute Games I searched for many videos but there is no video that make grass particle behind plz can you tell me😅

  • @rafaelborri2292
    @rafaelborri2292 2 ปีที่แล้ว

    Can you make a tutorial for some space game like flying with space ship. Please

  • @RS-jt9xv
    @RS-jt9xv ปีที่แล้ว

    Hi, great video! How did you make the lawn mower tilt (5:38) when steering? I'm trying to use an anchor point but i can't get it to work... Still great tutorial!

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

      Idk if you'll reply to this but any idea how to do the grass in the lawnmower part.
      Never done anything similar before

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

      It's a collection of quads instantiated in a grid with a slight offset. Then, each grass blade is rotated slightly in the Update function using randomness from the Perlin noise to achieve a natural look.

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

      The tilt is determined by calculating the difference between the move force and the forward direction, and then converting it into an angle using techniques like lerp, inverse lerp, pow, and so on. You can use online tools like Desmos to visualize the calculations. I'm a visual person, so it helps me a lot.

  • @nightgu
    @nightgu 2 ปีที่แล้ว +1

    I want to make a following camera, but I don't know how. Can you or anybodey help me?

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

    will it work in 3d? that is to say that it goes down and goes up with physics? and have other cars and collide with each other?

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

    Hey I was wondering if you knew a way to have regular turning and enable drifting

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

      Play around with the values in inspector until it is not drifting, write the new values down, and switch between them from code.

  • @lemarisaacs7427
    @lemarisaacs7427 2 ปีที่แล้ว

    With this tip can you create a realistic drifting game like real life like CarX drift racing 2. Can you create a realistic game using your method?

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

    Very cool.

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

    Is it possible to make some type of handbrake via the same code?

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

    Very fast lol, I had to put it in 0.5 speed because I'm still a beginner. But awesome videos!

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

      Thanks for taking the time to write a feedback. Fast speed is done by design to encourage people with less patience :) I’m glad you found a solution that works for you and I’m happy to hear you’re enjoying the videos. Good luck!

  • @ftrstudio141
    @ftrstudio141 2 ปีที่แล้ว

    Bro pls make the wheels rotation and steering also

  • @AhmedAdel-ys2vx
    @AhmedAdel-ys2vx 2 ปีที่แล้ว

    Thank you, I found what I am looking for But I don't know how to animate the front wheels with the turns! Could you help me with this?

  • @ViralGymClips874
    @ViralGymClips874 2 ปีที่แล้ว

    Crazy helpful

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

    I love this

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

    i did the same as u did and the car feels heavy and delay when steering and its just not realistic steering when i steer i lose much speed im using the 2022.3.45f1 editor

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

    how can i make it with the grass where when you drive over it it cuts it at the end? also great video it was really helpful❤

    • @oneminutegames7308
      @oneminutegames7308  ปีที่แล้ว +1

      Thanks 🙏 check the comments, I think I’ve answered it somewhere. Also check how collisions and triggers work. Ask google and chatgpt for examples.

  • @TwigWallder
    @TwigWallder 2 ปีที่แล้ว

    I don't know why but my car are very slowly but very great tutorial 🤔

  • @JarrahWallace
    @JarrahWallace 2 ปีที่แล้ว

    Anyone have any ideas on how to implement a system to swap between cars? Amazing tutorial!

    • @MrWhoever
      @MrWhoever 2 ปีที่แล้ว +1

      just change the gameobject that has the model. you dont have to put this script on the model itself

  • @meehdrescher
    @meehdrescher 2 ปีที่แล้ว

    Little question... for example, if I add a Rigidbody and a Box or Mesh Collider to the car, then approach an incline, will it adapt to the incline or will it just go through it?

    • @oneminutegames7308
      @oneminutegames7308  2 ปีที่แล้ว

      Incline also needs collider, and movement needs to be done with the rigidbody in the code (check Unity documentation and find rigidbody move functuon).

    • @meehdrescher
      @meehdrescher 2 ปีที่แล้ว

      @@oneminutegames7308 okey thanks!

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

    i didnt get near to the amount of driftting. had to change to fixedupdate and it worked. In case anyone else experiencedthe problem. Cant really explain why it changed though.

  • @adam_prod1318
    @adam_prod1318 2 ปีที่แล้ว +1

    I have problem i script car controlle : 21

  • @indiedevdom
    @indiedevdom 8 หลายเดือนก่อน +1

    Anyone experiencing the "car go slowly and doesnt drift" problem here's a quick fix:
    - Change Drag value from 0.98 to something like 0.995, or even remove it completely if you don't need your car to slow down
    - Change around Speed & Max Speed (along with changing drag)
    Since the Drag multiplication is not limited by Time.deltaTime, depending on your system, Unity might be updating frames way too often resulting in Drag getting decreased drastically.
    Hope this helps someone.

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

      Do you know why my car is going in reverse without me touching anything?

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

      @MR.OOFofficial check in which direction the blue arrow is pointing when you select the car, maybe graphics are reversed

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

      @@oneminutegames7308 how do I active it?

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

      It’s the move tool, it shows arrows when the tool is selected. The shortcut is ‘W’.

    • @indiedevdom
      @indiedevdom 8 หลายเดือนก่อน +1

      @@MR.OOFofficial I'd need to take a look at the script that you use to control the car.
      If I have to take a guess based on this video you, you probably have a
      tranform.positon += MoveForce * time.deltaTime; somewhere in your script so your MoveForce vector's Z value is always negative.
      You mentioned it happens without you touching anything so you're not checking for Input.GetAxis("Vertical") anywhere, rather you're just multiplying the MoveForce vector with a transform.forward * {something negative}.
      This is all assumptions.

  • @justeduard8259
    @justeduard8259 2 ปีที่แล้ว

    i love this tut. and i tried to follow it but i can't position the camera

  • @cafesstuff887
    @cafesstuff887 2 ปีที่แล้ว

    Can you make a one wheel bike controller ❤️❤️

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

    can you make this tutorial but in phone joystick

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

    can you explain in short how you made the grass blades that flow like this?

    • @oneminutegames7308
      @oneminutegames7308  ปีที่แล้ว +1

      1) spawn grass blades in double for loops, making a x by y grid. 2) make each grass blade move by rotating it by putting Time.time a sine function. 3) offset each rotation by sampling perlin noise and adding it to the time in the sine function

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

      thanks a lot @@oneminutegames7308

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

    you are amazing, please teach me how you create the grass effect please, please, please

    • @oneminutegames7308
      @oneminutegames7308  ปีที่แล้ว +1

      Thanks! 1) Spawn grass blades in a grid, using double for loop, iterating over both the x and z axes. 2) Rotate them slightly over time using a sine function with Time.time as an input. 3) Finally, add an offset to the sine function using the Mathf.PerlinNoise.

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

      @@oneminutegames7308 wow that was a fast replay bro thanks a lot. you add a collider on the car to destroy the grass as a cutting effect right?

    • @oneminutegames7308
      @oneminutegames7308  ปีที่แล้ว +1

      @@Minaia1017 yes

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

      thanks a lot for all the tutorials, need your help again please. when i recreate the car movement it works fine but no collisions occur with walls so nothing stops the car, it just go through them.@@oneminutegames7308

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

    I dont know if you still read comments on this video, but ive implemented this into a little arcade game. I have a problem where i have a rigid body on the car, but because the movement is essentially teleporting the car it is able to clip through other solid objects. How would you or anyone approach dealing with this? :)

    • @oneminutegames7308
      @oneminutegames7308  8 หลายเดือนก่อน +2

      Did you also update code to move the car using physics and the collisions work? Otherwise first do that (replace the code for movement with rigidbody.Move). Then you can change the rigidbody settings to “continuous”. Use google and chatgpt for details.

  • @quartzar
    @quartzar 2 ปีที่แล้ว

    Something's wrong with the deltaTime's, this is not framerate independant, the drag force changes with framerate. Any ideas?

    • @oneminutegames7308
      @oneminutegames7308  2 ปีที่แล้ว +1

      You need to multiply the drag by deltaTime as well (MoveForce *= Drag * Time.deltaTime), something I've missed in the video. Then of course you need to increase the Drag value a lot (times 50 if you have the default time settings).

  • @lifeisbeautiful5998
    @lifeisbeautiful5998 2 ปีที่แล้ว

    Plz make more and more

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

    I dont know why, but it doesnt work. The car go slowly and doesnt drift. Can anybody help me please.

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

    how do you solve collisions

  • @celdr
    @celdr 2 ปีที่แล้ว

    how could i add a speedometer to this? because when i use transform.position, target.velocity.magnitude doesnt work. hope you can help :)

    • @oneminutegames7308
      @oneminutegames7308  2 ปีที่แล้ว

      The "MoveForce" is a variable we use as velocity here, so the MoveForce.magnitude will tell you the speed.

    • @celdr
      @celdr 2 ปีที่แล้ว

      Thank you so much, it worked!

  • @n2akilan458
    @n2akilan458 2 ปีที่แล้ว

    how would you make the wheels rotate in response to the keyboard inputs?

    • @oneminutegames7308
      @oneminutegames7308  2 ปีที่แล้ว +1

      Wheel.transform.localRotation = Quaternion.Euler( Vector3.up * InputHorizontal * WheelRotation);

  • @049ajeetrawat3
    @049ajeetrawat3 ปีที่แล้ว

    Why is car not falling from the platform, is it because it does not have Rigid body?

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

      Yes, rigidbody adds physics and gravity, but then you also need to move it using rigidbody instead of transform.