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

  • @UnlimitedUnity
    @UnlimitedUnity 6 หลายเดือนก่อน +12

    dude give me script i will copy paste

    • @SigmaLigmaChannel
      @SigmaLigmaChannel 6 หลายเดือนก่อน +6

      dude watch video i will help

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

      i@@SigmaLigmaChannel i already watch your video many to see script but u didnt showed whole script thats why

    • @SigmaLigmaChannel
      @SigmaLigmaChannel 6 หลายเดือนก่อน +2

      Are you deaf?@@UnlimitedUnity

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

      @PrismUnityTutorials what your mean bro. can u just paste script here pls

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

      Have you watched the video with sound on and are you able to hear properly?

  • @Ahmetoffical73
    @Ahmetoffical73 ปีที่แล้ว +17

    I'm Turkish and my purpose of watching you is that there is no Turkish person who makes videos, so I made a car game and I owe it to your free script, thanks man.

  • @nevertoomanycats5159
    @nevertoomanycats5159 8 หลายเดือนก่อน +6

    YOU ARE THE EMBODIMENT OF A GIGACHAD THANK YOU MY MAN

  • @wenomechinsama.
    @wenomechinsama. 4 หลายเดือนก่อน

    Bro, you helped me a lot, I was already freaking out why the code I was using was giving me problems but I found this video, another subscriber

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

      Sigma's United! 🗣️🗣️🔥🔥🔥‼️

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

    Awesome, thank you!😀

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

    nice video, mate. I was able to get it to work nicely. How would I go about having the camera free look whilst using the car?

  • @sontranngoc6128
    @sontranngoc6128 10 หลายเดือนก่อน +3

    Awesome, thanks alot sir

  • @supadan10
    @supadan10 4 หลายเดือนก่อน +1

    This really helped me! One issue though, the rear wheels are very far away from the car, any tips?

  • @tucgt
    @tucgt 4 หลายเดือนก่อน +3

    Hi! I have a question about the car. When i play the game, my front left and rear left wheels are sticking out a little further than i intended. Is there a potential fix to this?

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

    Great vid super easy to follow thank you

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

      Are you now a sigma-scriber? 😂😂😂😂😂😂😂😂😂😂😂

  • @HardWork.27
    @HardWork.27 11 หลายเดือนก่อน +1

    Thanks Bro!

  • @dsplagoclicks5777
    @dsplagoclicks5777 4 หลายเดือนก่อน +1

    WOW! I'm searchig hurs for this and finally found 'em thanks bud!😜

  • @DJ-SONG68
    @DJ-SONG68 3 หลายเดือนก่อน

    It's great, thank you very much for this video

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

    THANK YOU SOOOOOOOOO MUCH

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

    So the wheels decide to move to the middle of the underbody and the spoiler falls of any fix?

  • @JustAGamer-kl2xx
    @JustAGamer-kl2xx 2 หลายเดือนก่อน

    Love you bro

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

    I have a problem with the wheel transform when I put it on the wheel the car starts to do back flips and the wheels move away from the car I don't understand I did the whole tutorial correctly but it makes me feel like that🤔🤔

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

    I have a little issue with the wheels, they're rotating but not using the centre of the wheel for it. They rotate in a open "circle", I mean, they move from the centre and create their own circumference. Trying to apply the script to truck wheels so they're not "small wheels". Thanks in advance.

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

      Had the same issue, it doesnt have to do with the wheel size, the center point of the wheel is screwed up (from the 3D file), i used my own model (using blender) to create the car, when you export the car wheel, make sure it's on 0,0,0 (xyz) coordinate otherwise it do the ohio wheels

    • @maxono1465
      @maxono1465 ปีที่แล้ว +5

      @@Not_Aran8276 ohio wheels 💀

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

    plz man tell me bro how can i just make a ui button witch rotate my car backward and forward

  • @BEE-007
    @BEE-007 ปีที่แล้ว

    i have problem this car is very good but very slow new script? or something in new in unity and this is very hard for me

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

    can you help me my car is very slow . i tryed everything but this not work

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

    when i made my wheels i had to rotate 90 on the z. Your script flattens them and if i put them under parents then they end up squished.

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

    Vehicles slide sideways when going on on slopes. any fixes?

  • @redfinance3403
    @redfinance3403 11 หลายเดือนก่อน +1

    I'm having trouble with the cinemachine when the car is reversing. The camera doesn't go far behind or infront of the car while reversing but rather the car comes really close and occupies the whole screen. Any suggestions please?

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

      you can click on virtual camera and then in inspector click on body and set all damping to zero i think it should help

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

      thanks for the response but I finished my first game 1 month ago! I ended up not using cinemachine but rather just manipulating the camera's movement instead. : )

  • @paveldesort5657
    @paveldesort5657 11 หลายเดือนก่อน +1

    great video and help with setting up colliders, can this script be adjusted for mobile environment? taps on the screen?

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

      th-cam.com/video/tmZ3VTjwfC8/w-d-xo.html

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

      Impossible

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

    please make complete course of 3 to 4 hours on this where you teach from importing assets to build complete car game or any transport game

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

    I got my vehicle to work but i would like to have sound..i have no patience for coding which upsets me 😥

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

    How do i fix it if the wheels are sideways?

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

    hi, when i apply the script, my wheels flip by 90 degrees on the z axis and they rotate around the x axis. what do I need to change in order to get it right?

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

      Same problem bro

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

      Same with me...

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

      Try with the car provided by Unity asset store, linked under this video

  • @TheBoys2-dg6cb
    @TheBoys2-dg6cb 4 หลายเดือนก่อน +1

    obrigado cara graças a ti criei meu primeiro jogo

  • @BobTheBuilder294
    @BobTheBuilder294 ปีที่แล้ว +5

    how do i improve my starting speed? I cranked the motor force to like 999999 but it still takes forever to build up momentum.

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

      I would add an impulse force during the first frame that the button is pressed, along with the normal car force

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

      ​@@realkhushmehta How do you do that?

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

      @@mcshootems alternatively, you could also multiply with mass

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

      what is your drag on the rigidbody of the car? for me i had the same problem because it was at 5. if i put 0.1 then it works nicely

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

    it wont let me drive and rolls backwards until it falls pls help

  • @MCDecoder
    @MCDecoder 5 หลายเดือนก่อน +1

    my car is stuck on one place but wheels are working

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

    its work but i got one problem, the movement is slow, like heavy, i put motor force, break force and macx steer angle like in the video but still slow, anyone can help?

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

      I recommend you change up the value of the variables. Let me know if it helps

  • @realDIGITAL_
    @realDIGITAL_ 5 หลายเดือนก่อน +5

    my wheels get flung off

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

    My car starts shaking when i drive do you know how to solve it?

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

    even with the car's mass being 1300, it still flies upward and eventually falls down. I tried raising it A LOT and a little, but it only slows the rising of the car. Not sure what I've done wrong but I did exactly what you did and used the same car model...

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

      its also when I begin to move forward, it just flies up into the air slowly

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

    What are the controls for the movement cuz i have been typing WASD and changing valus weight brake and have also readjusted the colliders but still no results i.e. movement

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

      The tutorial doesn't mention it, but you need to install the new unity input system package under Unity Registry

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

      @@richbuilds_com Can you explain more plz?

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

      @@webdev_03 th-cam.com/video/Yjee_e4fICc/w-d-xo.html

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

      the controls for movement are on the input system using unity. you will have to add the package as said below and also add the using.UnityEngine.InputSystem for it to work on the horizontal and vertical axes. you can see the buttons in the project settings under input.

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

    I cant turn left or right or slow down my car help

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

    thank you

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

    After Running A game my car flying in air not stop on ground I'm follow your all steps but car not running on ground I'm copy your every step but didn't work please help me

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

    how do i make the floor like that?

  • @adtv_breaking_of_theprinciples
    @adtv_breaking_of_theprinciples 5 หลายเดือนก่อน +3

    my car shaking too much i have tried everything but nothing working pls tell me hoe to make car more stable

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

    hi I have a problem. my cars wheels are turn 90 degree when I start the game
    and there is no info about this. can u help

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

      answers.unity.com/questions/1357259/how-do-i-get-my-wheel-mesh-to-rotate-on-the-proper.html
      Hope this helps
      👍

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

      @@SigmaLigmaChannel ty

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

    mine the wheels arent moving
    but the car is'

  • @user-vj4pe2jg2p
    @user-vj4pe2jg2p 5 หลายเดือนก่อน

    when i use premade prefab from asset store script(and other similar scripts) works as it should, but when i make my own car using basic geometry in unity, wheels transform and car flies into space. Or when i use car asset and wheels from different asset all the wheels become right wheels. Where am i wrong????

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

      Yeah same idk whats happening

    • @user-vj4pe2jg2p
      @user-vj4pe2jg2p 3 หลายเดือนก่อน

      @@goforit738 i found solution, if your wheel is bugged, use negative scale, like if you have 3.3.3 scale use -3 -3 -3. Unity is not suitable for transform manipulations so better use other 3d modelling apps and import to unity

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

      have you frozen your 3d model transformations?

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

    How the car are moving if we haven't write a code for key press to left right or forward

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

      The video is fake😅

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

      @sigmaligmachannel are you kidding

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

    i want to make car drift like nfs , dirt 3. could make video?

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

    Hey! I have a very annoying problem. when I add the wheel collider, it is not visible at all. How can I fix this

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

      Make sure any of the parents has a rigid body. If its still not showing try clicking on the car Prefab wheel collider must be shown there.

    • @Eduardo-fx9ih
      @Eduardo-fx9ih ปีที่แล้ว

      i got same issue, just add a RigidBody component to Empty Object

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

      Ok

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

    thx❤

  • @user-ph4pg6fb2e
    @user-ph4pg6fb2e ปีที่แล้ว +1

    i don't get the thing under the script, where I can change the variables

  • @SigmaLigmaChannel
    @SigmaLigmaChannel ปีที่แล้ว +17

    Please ask me questions if you are stuck

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

      How can I input the follow offset it won't let me

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

      I want to make the car drift at the press of a button but everything I tried looks unrealistic or the car looks like slipping not drifting.

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

      My car still flies away but slowly

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

      ​@@slimebone468 mine too

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

      I can’t find the cinema thing

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

    First i need to congratulate you
    Thanks a lot
    Can u please help me how can i use my mouse movement for left and right
    Also can u please tell me how can i display the speed of the car

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

    Box collider 2d?

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

    my car is extremely easy to flip over, all my settings are the same as yours and i dont want to freeze the rotation. is there a fix to this please?

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

      have your wheel colliders further out from the center of mass

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

    car movement too slow. I tried increasing the acceleration (motor speed) up to 1 million but car still too slow. Need help

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

      try lowering the drag of rigidbody of the car

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

      Adjust the friction of the wheels! Your wheels are probably slipping, basically spinning in place, but it's really hard to tell. Reduce forward friction extremum slip to like 0.001 and iterate from there.

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

    I am having a problem that the car is falling down

  • @caiobonato1870
    @caiobonato1870 ปีที่แล้ว +11

    I changed the spring and damper to the same values in all wheel colliders, but my car still flips over really easily.

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

      me too

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

      sounds like the mass of the car is too low. if there is no weight to support the force the flipping part will happen. try adding mass to the object in your rigidbody

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

      same

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

      exception

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

      The issue is the UpdateWheels function. Im not sure what it is for though, I wish they explained it in the video.

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

    hey my car isnt braking well and takes ages to brake how do i fix this???

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

    My cinemachine camera shakes heavilty.
    i tried the damping to set to 0 in the aim tab but nothing.

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

      🫨

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

      Adjust the horizontal damping to 0.1 instead of 0, and you'll thank me later. :)

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

    Why can wheels turn and spin when we have four separate wheel meshes and how

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

      you find a solution?

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

    can you tell me how to import that car to the sample scene

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

      oh nevermind

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

    My wheels dont even move and the top of my car just fully comes of as soon as I press start. Any help?

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

    If you for some reason dont want to click in the bio for the code here is it:
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class CarController : MonoBehaviour
    {
    private float horizontalInput, verticalInput;
    private float currentSteerAngle, currentbreakForce;
    private bool isBreaking;
    // Settings
    [SerializeField] private float motorForce, breakForce, maxSteerAngle;
    // Wheel Colliders
    [SerializeField] private WheelCollider frontLeftWheelCollider, frontRightWheelCollider;
    [SerializeField] private WheelCollider rearLeftWheelCollider, rearRightWheelCollider;
    // Wheels
    [SerializeField] private Transform frontLeftWheelTransform, frontRightWheelTransform;
    [SerializeField] private Transform rearLeftWheelTransform, rearRightWheelTransform;
    private void FixedUpdate() {
    GetInput();
    HandleMotor();
    HandleSteering();
    UpdateWheels();
    }
    private void GetInput() {
    // Steering Input
    horizontalInput = Input.GetAxis("Horizontal");
    // Acceleration Input
    verticalInput = Input.GetAxis("Vertical");
    // Breaking Input
    isBreaking = Input.GetKey(KeyCode.Space);
    }
    private void HandleMotor() {
    frontLeftWheelCollider.motorTorque = verticalInput * motorForce;
    frontRightWheelCollider.motorTorque = verticalInput * motorForce;
    currentbreakForce = isBreaking ? breakForce : 0f;
    ApplyBreaking();
    }
    private void ApplyBreaking() {
    frontRightWheelCollider.brakeTorque = currentbreakForce;
    frontLeftWheelCollider.brakeTorque = currentbreakForce;
    rearLeftWheelCollider.brakeTorque = currentbreakForce;
    rearRightWheelCollider.brakeTorque = currentbreakForce;
    }
    private void HandleSteering() {
    currentSteerAngle = maxSteerAngle * horizontalInput;
    frontLeftWheelCollider.steerAngle = currentSteerAngle;
    frontRightWheelCollider.steerAngle = currentSteerAngle;
    }
    private void UpdateWheels() {
    UpdateSingleWheel(frontLeftWheelCollider, frontLeftWheelTransform);
    UpdateSingleWheel(frontRightWheelCollider, frontRightWheelTransform);
    UpdateSingleWheel(rearRightWheelCollider, rearRightWheelTransform);
    UpdateSingleWheel(rearLeftWheelCollider, rearLeftWheelTransform);
    }
    private void UpdateSingleWheel(WheelCollider wheelCollider, Transform wheelTransform) {
    Vector3 pos;
    Quaternion rot;
    wheelCollider.GetWorldPose(out pos, out rot);
    wheelTransform.rotation = rot;
    wheelTransform.position = pos;
    }
    }

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

    my car flips every time I hit the play game mode , Idk whats happening can anyone guide

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

      Have you watched the part where I covered that issue?

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

    thnx

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

    my car shakes a lot when i am trying to turn any reasons why?

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

    this video: about how to script a car in unity
    me: BumBLBEEE YAYYYY!!!!! 😃😃😃 🤖

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

    idont get the script to work

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

    Why the tyre are moving but not car

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

    Thank you so much this video really help me it is easy to understand and now I can do my Final Project in our Gamedev subject I will like and subscribe the video and channel in return

  • @GK-GYAN1343
    @GK-GYAN1343 หลายเดือนก่อน

    Sir while I play my car automatically lift upward

    • @GK-GYAN1343
      @GK-GYAN1343 หลายเดือนก่อน

      Please tell any solution

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

    my car isn't moving, can u help me?

  • @BasantKumar-bg3fg
    @BasantKumar-bg3fg 9 หลายเดือนก่อน

    i'm not able to play my car , how can i fix this ?

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

    my car is mooving very very slow, it's hardly belive that it's moving

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

    this is convenient if you dont know how to code!

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

    man, how to make infinity road like yours?

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

      Add a plane to your scene and scale it up. Then you add a texture to it 👍

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

      @@SigmaLigmaChannel i will try thanks

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

      @@SigmaLigmaChannel one more thing my car is rotating after hitting the plane.
      I mean: I press play mode, then my car go down when hit the plane it started rotating, i think its because of colliders maybe. could you help me, please

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

    Can you plz make video on mobile controller of this script?? Plz🙏🙏🙏🙏

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

      Thank you for your suggestion. Yes, there will be a tutorial on a mobile car controller in the next couple of weeks or so. Great idea!

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

      @@SigmaLigmaChannel Oh nice! Upload tutorial as soon as possible :) Edit :- I need it too :D

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

      @@MutantBrooo4321 Probably will be at the end of next week, because I’m already working on another video and don’t have a lot of time currently

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

    The car just starts flying :/ can someone help?

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

    Can it support mobile controls?

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

      Yes! I've got a video on that

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

    i got 3 errors
    the namespace '' already contains a ddefinition for 'carController'
    Type 'CarController' alreaddy defines a member called 'FixeddUpdate' with the same parameter types
    Type 'CarController' alreaddy defines a member called 'GetInput' with the same parameter types

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

      There are probably 2 scripts called carcontroller

    • @samolas-clipes-3361
      @samolas-clipes-3361 9 หลายเดือนก่อน

      I think you should learn the basics of unity first before making this

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

    car vibrates and becomes blurry while driving.

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

      Have U considered glasses? 😃

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

      I fixed it by increasing the horizontal damping by 0.1 😏

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

    My car keeps falling thru the ground

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

      Make sure that you follow all the steps carefully. This probably has to do something with the colliders.

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

    bro pls reply i cant drive the car

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

    My car is fliying wegen I play

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

    my wheels are bugging out

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

      I had the same problem. You have to give the Body of the Car a Mesh Collider and then turn Convex on. I hope I can help you with this!

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

    where is the script

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

    Why wheel cooliders is not visible to me

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

      Put on your glasses 😁👍

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

      @@SigmaLigmaChannel ☠

  • @d.a9490
    @d.a9490 6 หลายเดือนก่อน

    my car wheel drive sideway idk why but its side way

    • @d.a9490
      @d.a9490 6 หลายเดือนก่อน

      pls help

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

      Make it drive foreward 😁👍

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

      thank you for your help *sarcasm*@@SigmaLigmaChannel

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

      @@taraskhan475 np

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

      lmao, but yeah I did find this tutorial helpful @@SigmaLigmaChannel 👍

  • @Jevin-gn1vv
    @Jevin-gn1vv 10 หลายเดือนก่อน

    I think you were "inspired" by "b3agz" video. Because *many* things are similar...🤨

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

      its a complete copy rip from another youtuber for sure

  • @d.a9490
    @d.a9490 6 หลายเดือนก่อน +1

    do u still answer question a year later?

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

    Car is not moving

  • @Areswargod-bv3zi
    @Areswargod-bv3zi 12 วันที่ผ่านมา

    bro my car is flying

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

    using System;
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class CarController : MonoBehaviour
    {
    private float horizontalInput, verticalInput;
    private float currentSteerAngle, currentbreakForce;
    private bool isBreaking;
    // Settings
    [SerializeField] private float motorForce, breakForce, maxSteerAngle;
    // Wheel Colliders
    [SerializeField] private WheelCollider frontLeftWheelCollider, frontRightWheelCollider;
    [SerializeField] private WheelCollider rearLeftWheelCollider, rearRightWheelCollider;
    // Wheels
    [SerializeField] private Transform frontLeftWheelTransform, frontRightWheelTransform;
    [SerializeField] private Transform rearLeftWheelTransform, rearRightWheelTransform;
    private void FixedUpdate() {
    GetInput();
    HandleMotor();
    HandleSteering();
    UpdateWheels();
    }
    private void GetInput() {
    // Steering Input
    horizontalInput = Input.GetAxis("Horizontal");
    // Acceleration Input
    verticalInput = Input.GetAxis("Vertical");
    // Breaking Input
    isBreaking = Input.GetKey(KeyCode.Space);
    }
    private void HandleMotor() {
    frontLeftWheelCollider.motorTorque = verticalInput * motorForce;
    frontRightWheelCollider.motorTorque = verticalInput * motorForce;
    currentbreakForce = isBreaking ? breakForce : 0f;
    ApplyBreaking();
    }
    private void ApplyBreaking() {
    frontRightWheelCollider.brakeTorque = currentbreakForce;
    frontLeftWheelCollider.brakeTorque = currentbreakForce;
    rearLeftWheelCollider.brakeTorque = currentbreakForce;
    rearRightWheelCollider.brakeTorque = currentbreakForce;
    }
    private void HandleSteering() {
    currentSteerAngle = maxSteerAngle * horizontalInput;
    frontLeftWheelCollider.steerAngle = currentSteerAngle;
    frontRightWheelCollider.steerAngle = currentSteerAngle;
    }
    private void UpdateWheels() {
    UpdateSingleWheel(frontLeftWheelCollider, frontLeftWheelTransform);
    UpdateSingleWheel(frontRightWheelCollider, frontRightWheelTransform);
    UpdateSingleWheel(rearRightWheelCollider, rearRightWheelTransform);
    UpdateSingleWheel(rearLeftWheelCollider, rearLeftWheelTransform);
    }
    private void UpdateSingleWheel(WheelCollider wheelCollider, Transform wheelTransform) {
    Vector3 pos;
    Quaternion rot;
    wheelCollider.GetWorldPose(out pos, out rot);
    wheelTransform.rotation = rot;
    wheelTransform.position = pos;
    }
    }
    Code

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

    Copy of th-cam.com/video/Z4HA8zJhGEk/w-d-xo.html

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

    ismit lisanced

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

      Do you mean is it licenced? If so, you can use this script for any game you want. Even in commercial uses. Hope this helps!

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

      @@SigmaLigmaChannel thanks

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

      aint no way anybody is gonna use it in commercial use @@SigmaLigmaChannel

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

    bro wake up and decided to copy others

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

    My car shakes violently, i cant figure out why, can somebody please help me?

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

      car or the camera or you not sure?

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

      @@SondaPower Im pretty sure its the camera

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

      @@duraeman2893 did you change that option in 3:57 in the AIM tab? Because there is similar one above this tab.

  • @gati._.5422
    @gati._.5422 ปีที่แล้ว

    bad

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

    worst instructions