Unity Quicky: Car/Vehicle Controller/Rig! [HOW-TO]

Поділитися
Вставка
  • Опубліковано 18 лис 2024
  • Ігри

КОМЕНТАРІ • 77

  • @JohnnySix
    @JohnnySix 4 роки тому +17

    If you're still looking at these, a 2020 version would be great, what you've created is a really great starting point for beginners!

  • @Mrbishtgamer
    @Mrbishtgamer 6 років тому +5

    about 3 errors
    [HideInInspector]
    public Rigidbody rigidbody;
    void Start() {
    rigidbody = GetComponent();
    rigidbody.centerOfMass = centerOfGravity.localPosition;
    }
    it will work

  • @Drawk1d
    @Drawk1d 10 років тому +11

    Ah dat 60fps 1080p,so beautiful.....

  • @porrasm
    @porrasm 7 років тому

    Excellent prototype for me. I want to make like a "toy car racer" multiplayer project and this is perfect for a placeholder car script.

  • @MisterThuganomics
    @MisterThuganomics 9 років тому +25

    Anyone else have problems with this project in unity 5.0?

    • @kimsjoberg2488
      @kimsjoberg2488 9 років тому +1

      C3lluloidDream Yes! would be great with an update :)

    • @MarioCardonaS
      @MarioCardonaS 8 років тому +1

      +C3lluloidDream - I have a solution.
      In the hierarchy change:
      1) For the car "Car - Decent Skid" go to the Rigidbody component. mass =
      350.
      2) For each wheel (Wheel.F.R, Wheel.F.L, Wheel.R.L and Wheel.R.R) change
      in the Wheel collider component the Suspension spring = 900. Sideway
      Friction (Extremum slip = 0.02)
      Aditional, if you like can change the values of Main camera in the
      Smooth Follow script:
      Distance=10, Heigh = 5.
      .

    • @motivationpouretudier2460
      @motivationpouretudier2460 8 років тому

      Please, did this project work on Unity 4.6.1 ? Big thanks

    • @theotherquou
      @theotherquou 6 років тому

      Yes

  • @AndrewJamesBowen
    @AndrewJamesBowen 7 років тому +2

    Any chance of an update with latest version of Unity? I've tried tweaking the values a lot and no luck.

  • @jacintoroels3954
    @jacintoroels3954 8 років тому +5

    can you please make a version that works in untity 5

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

    I liked the talk! very informative about car physics! truth teller!!!

  • @mrgibson1812
    @mrgibson1812 9 років тому +14

    Doesn't work in unity 5.1.2
    :/ could you do an update?

    • @MarioCardonaS
      @MarioCardonaS 8 років тому +2

      +Angry Hat - I have a solution.
      In the hierarchy change:
      1) For the car "Car - Decent Skid" go to the Rigidbody component. mass = 350.
      2) For each wheel (Wheel.F.R, Wheel.F.L, Wheel.R.L and Wheel.R.R) change in the Wheel collider component the Suspension spring = 900. Sideway Friction (Extremum slip = 0.02)
      Aditional, if you like can change the values of Main camera in the Smooth Follow script:
      Distance=10, Heigh = 5.
      .

    • @Faery69
      @Faery69 8 років тому +1

      +Mario Cardona Mario Cardona mi suona italiano.

    • @MarioCardonaS
      @MarioCardonaS 8 років тому +1

      Il nome di Mario è molto comune in America Latina.

    • @Faery69
      @Faery69 8 років тому +1

      Mario Cardona So you translated that with Google right? XD

    • @MarioCardonaS
      @MarioCardonaS 8 років тому +1

      anche voi. xD You too.

  • @zxcvbnm2992
    @zxcvbnm2992 10 років тому +4

    shouldn't you be using 2 Pi instead of Pi your speed calculations because c = 2Pi *r

  • @tomhas10
    @tomhas10 10 років тому +1

    Any idea why every time i try to open the project it crashes unity?

  • @tunes8227
    @tunes8227 7 років тому

    Hi,
    There is this problem with my car that I couldn't fix so far. When I jump at the edge of a plane, it doesn't just fly in the air based on gravity but instead, it falls down directly. Any idea how to fix this??
    Thanks in advance.

  • @lebeauspaceagency2883
    @lebeauspaceagency2883 6 років тому

    omg. thats great!! looking foreward for others tut's

  • @autbo
    @autbo 8 років тому

    Is there a way to dampen or increase the mass of the rotation of the vehicle? Something that I noticed in some games like Forza is that they make it more difficult to spin the vehicle like it has a lot of mass. When you hit the front or the back of the car from the side, it has lots of resistance from the impact and the car doesn't spin very fast. Also when you hit a wall, your car doesn't align to the wall and get stuck. Is there a way to do this in Unity? Angular drag is not what I want btw. I guess maybe increasing the mass might work, but it makes the car harder to move. It's not drag, I just want it harder to get the car's rotation to accelerate.

  • @gamersresidence6040
    @gamersresidence6040 2 місяці тому

    Thanks, this is pretty cool :)

  • @HappyGL
    @HappyGL 9 років тому

    How to have wheel collider and on the mesh also have a mesh collider ?

  • @hawksandwich4742
    @hawksandwich4742 10 років тому

    What's the difference between blob light projectors and spotlights? I know it's kind of off topic, but I can't find it on Google....

  • @c4dtuterials
    @c4dtuterials 10 років тому +1

    Can you make a script for a rotating camera around the car?

  • @bilalcekic8238
    @bilalcekic8238 10 років тому

    can't add component'TireToWheel' because it doesn't exist. Check to see if the file name and class name match. ???

  • @skahler
    @skahler 2 роки тому

    i paid no attention to any of this, slapped on an XR rig, and threw up on my carpet. good times

  • @fre6328
    @fre6328 6 років тому

    Is it working for unity 5 now??

  • @royaltricker499
    @royaltricker499 7 років тому

    Sir close issue and bug reporter problem in unity please reply

  • @mystudies5585
    @mystudies5585 6 років тому

    please please create a new tuto about car controller with new unity version it's very important for me

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

    huh, their problem is too much grip, meanwhile my problem is that after i turn on gizmos to see the wheel action they look like they are doing burnouts everywhere

  • @Kirosu3
    @Kirosu3 7 років тому

    I was wondering if I could use the car code for commercial use.

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

      He posted it and even says in the video that people might want to use the code.

  • @MohammedNoureldin
    @MohammedNoureldin 7 років тому +1

    Isn't it wrong to use the radius to calculate the speed? I think we have to use the diameter (2 x radius).

  • @yoseftrad1359
    @yoseftrad1359 6 років тому

    how can i make a steering wheel and brake and move button for mobile??

  • @mickbanks68
    @mickbanks68 7 років тому +1

    File throws an error as of Unity 5 .. bummer

    • @famethius
      @famethius 6 років тому

      Thanks for the assist! Just got the game running in 2018.2.12!

  • @tomtatlichsu2878
    @tomtatlichsu2878 7 років тому

    Thanks

  • @paulius3041
    @paulius3041 9 років тому

    I want your syntax highlight!!!

    • @robosergTV
      @robosergTV 5 років тому

      then use visual studio lol

  • @failprone
    @failprone 9 років тому +3

    Doesn't work in the new version, that makes me a sad panda

    • @MarioCardonaS
      @MarioCardonaS 8 років тому

      +failprone - I have a solution.
      In the hierarchy change:
      1) For the car "Car - Decent Skid" go to the Rigidbody component. mass =
      350.
      2) For each wheel (Wheel.F.R, Wheel.F.L, Wheel.R.L and Wheel.R.R) change
      in the Wheel collider component the Suspension spring = 900. Sideway
      Friction (Extremum slip = 0.02)
      Aditional, if you like can change the values of Main camera in the
      Smooth Follow script:
      Distance=10, Heigh = 5.
      .

  • @BanCorporateOwnedHouses
    @BanCorporateOwnedHouses 7 років тому

    Yeah, this project needs an update. It throws me rigidbody errors.

  • @webmang
    @webmang 6 років тому

    Anyone got a fix for this bad boy?

  • @disgrandpa247
    @disgrandpa247 6 років тому

    Plz fix this for unity 5.0

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

    In my 2019 version it runs very slow

  • @77KamRAD77
    @77KamRAD77 10 років тому +1

    Please make tutorial 3d Top Down Shooter for mobile !!! PLEAAASE!!! YOU ARE AWESOME!!!

  • @TitoOliveiraDesign
    @TitoOliveiraDesign 9 років тому +2

    Didn't anyone solve the issue when converting to a unity 5 project?

    • @MarioCardonaS
      @MarioCardonaS 8 років тому +1

      +Tito Oliveira - Yes.
      In the hierarchy change:
      1) For the car "Car - Decent Skid" go to the Rigidbody component. mass =
      350.
      2) For each wheel (Wheel.F.R, Wheel.F.L, Wheel.R.L and Wheel.R.R) change
      in the Wheel collider component the Suspension spring = 900. Sideway
      Friction (Extremum slip = 0.02)
      Aditional, if you like can change the values of Main camera in the
      Smooth Follow script:
      Distance=10, Heigh = 5.
      .

    • @TheLerix
      @TheLerix 8 років тому

      Doesn't work, the Wheel Collider aren't functionnal in Unity 5...

    • @MarioCardonaS
      @MarioCardonaS 8 років тому +1

      It works. I have Unity 5 too.

    • @TheLerix
      @TheLerix 8 років тому

      Mario Cardona For me in Unity 5.3.5f1 it doesn't work

    • @hondo190
      @hondo190 8 років тому

      Mario Cardona I tried your suggestions in the actual unity and still does not. work. 350kg also seems to too light IMO. In jumps and wiggles too strong. any new thoughts on this?

  • @SamSpain
    @SamSpain 8 років тому

    It's a shame this is borked on the latest version of Unity (even with changes from comments). It looks pretty neat.

  • @Spanish.Javier
    @Spanish.Javier 9 років тому

    very usefull

  • @w1ndro1d
    @w1ndro1d 7 років тому +1

    WheelCollider in unity 5 is broken af. Wheel collider always appears perpendicular to the wheel no matter what I do. It only works for the in-built cube or other shapes. It doesn't work for custom models.

    • @robosergTV
      @robosergTV 5 років тому

      did you found a solution?

  • @jcdlRayas
    @jcdlRayas 9 років тому

    What if you want the AI to control the car with the said script? Is it possible?

  • @cgjackle3740
    @cgjackle3740 7 років тому

    When I try to run the game it just give me tons of script errors about the Center of weight and how it dosen't show as an extension....

    • @kylec33
      @kylec33 7 років тому +1

      replace "rigidbody" with "transform.GetComponent ()"

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

      @@kylec33 thank youu

  • @gian-lucanardini9706
    @gian-lucanardini9706 8 років тому

    would of been nice to shown us all of the code 11:07

    • @Cryptic808
      @Cryptic808 8 років тому

      Or you can download it since he posted it. That being said, it's no longer completely valid with the newer wheel colliders in Unity 5.

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

    8:45 particle fist em'

  • @kheme9248
    @kheme9248 9 років тому

    Why did you cuss!! I was watching this near my family!