Тёмный

Simple Car Controller in Unity (Copy Script) 

Sigma's United
Подписаться 1,1 тыс.
Просмотров 100 тыс.
50% 1

I will guide you through all the steps needed to make a car controller with a smooth camera. No wasting time, no scripting, and the most simple unity tutorial on car movement out there!
............................
Tired of buying 3D Models? - Blender Tutorials : • Blender Tutorials
Suck at Unity? - Unity Tutorials : • Unity Tutorials
............................
✅ Learn how to Create your own programming Language: 0d810-brnzueoi4lgzu5s9fp65.ho...
Car Controller Script - github.com/PrismRU-vid/Unity...
The Assets I used in this video (from Mena) - assetstore.unity.com/packages...
............................
Time Stamps
0:00 Intro
0:21 Adding a Collider
0:51 Setting up the wheel colliders
1:34 Adding the Script
2:07 Fixing Bugs
2:48 Camera (Cinemachine)
4:00 Outro
............................
Please consider Subscribing and turning on Notifications for more awesome Tutorials!

Хобби

Опубликовано:

 

26 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 261   
@UnlimitedUnity
@UnlimitedUnity 6 месяцев назад
dude give me script i will copy paste
@SigmaLigmaChannel
@SigmaLigmaChannel 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 месяцев назад
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 Год назад
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.
@SigmaLigmaChannel
@SigmaLigmaChannel Год назад
That's great to hear!
@Xoid_Gt
@Xoid_Gt Год назад
Berkaprod da bir sürü video var
@mirardaekinci8692
@mirardaekinci8692 6 месяцев назад
oo kral naber
@nevertoomanycats5159
@nevertoomanycats5159 8 месяцев назад
YOU ARE THE EMBODIMENT OF A GIGACHAD THANK YOU MY MAN
@TwoWaffer
@TwoWaffer 5 месяцев назад
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 Год назад
Awesome, thank you!😀
@zacsmith9146
@zacsmith9146 Год назад
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 11 месяцев назад
Awesome, thanks alot sir
@supadan10
@supadan10 4 месяца назад
This really helped me! One issue though, the rear wheels are very far away from the car, any tips?
@kilbey3338
@kilbey3338 4 месяца назад
Great vid super easy to follow thank you
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
Are you now a sigma-scriber? 😂😂😂😂😂😂😂😂😂😂😂
@HardWork.27
@HardWork.27 Год назад
Thanks Bro!
@jbuilds9
@jbuilds9 5 месяцев назад
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?
@dsplagoclicks5777
@dsplagoclicks5777 5 месяцев назад
WOW! I'm searchig hurs for this and finally found 'em thanks bud!😜
@realDIGITAL_
@realDIGITAL_ 6 месяцев назад
my wheels get flung off
@Mistacle
@Mistacle Год назад
THANK YOU SOOOOOOOOO MUCH
@DJ-SONG68
@DJ-SONG68 4 месяца назад
It's great, thank you very much for this video
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
No.
@JustAGamer-kl2xx
@JustAGamer-kl2xx 2 месяца назад
Love you bro
@delcurto_fa
@delcurto_fa Год назад
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 Год назад
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 Год назад
@@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
@paveldesort5657
@paveldesort5657 Год назад
great video and help with setting up colliders, can this script be adjusted for mobile environment? taps on the screen?
@Dimensions899
@Dimensions899 9 месяцев назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tmZ3VTjwfC8.html
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
Impossible
@thundersto2434
@thundersto2434 3 месяца назад
So the wheels decide to move to the middle of the underbody and the spoiler falls of any fix?
@MadhurSensei
@MadhurSensei 5 дней назад
thank you so so much , bro your video was so helpful but I am not able to see Cinemachine option on top after installing its package.
@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
@lkc101
@lkc101 2 месяца назад
Vehicles slide sideways when going on on slopes. any fixes?
@TheBoys2-dg6cb
@TheBoys2-dg6cb 4 месяца назад
obrigado cara graças a ti criei meu primeiro jogo
@alex_ig_
@alex_ig_ Год назад
How do i fix it if the wheels are sideways?
@urdupoetrywithkamranahmedk57
@urdupoetrywithkamranahmedk57 3 месяца назад
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
@keddish
@keddish 10 месяцев назад
thank you
@thecinolieshere
@thecinolieshere 3 месяца назад
how do i make the floor like that?
@tijuetexploration1805
@tijuetexploration1805 4 месяца назад
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🤔🤔
@shrimpinpat
@shrimpinpat Год назад
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.
@Zeko99
@Zeko99 Год назад
can you help me my car is very slow . i tryed everything but this not work
@Chickenking9080
@Chickenking9080 Год назад
it wont let me drive and rolls backwards until it falls pls help
@gamerxplosion
@gamerxplosion Год назад
i want to make car drift like nfs , dirt 3. could make video?
@TARKYequryt
@TARKYequryt Год назад
thx❤
@finn3163
@finn3163 Год назад
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 Год назад
Try with the car provided by Unity asset store, linked under this video
@MCDecoder
@MCDecoder 6 месяцев назад
my car is stuck on one place but wheels are working
@funkybird6377
@funkybird6377 3 месяца назад
Box collider 2d?
@redfinance3403
@redfinance3403 Год назад
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 9 месяцев назад
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 9 месяцев назад
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. : )
@beanfox6454
@beanfox6454 7 месяцев назад
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 7 месяцев назад
its also when I begin to move forward, it just flies up into the air slowly
@koala4490
@koala4490 9 месяцев назад
I cant turn left or right or slow down my car help
@BobTheBuilder294
@BobTheBuilder294 Год назад
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 Год назад
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
@afnirestianaputrid6091
@afnirestianaputrid6091 Год назад
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
@mrblibb00vr
@mrblibb00vr 3 месяца назад
My car starts shaking when i drive do you know how to solve it?
@SunchippStudio
@SunchippStudio 4 месяца назад
I got my vehicle to work but i would like to have sound..i have no patience for coding which upsets me 😥
@TDF56
@TDF56 Год назад
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 Год назад
The tutorial doesn't mention it, but you need to install the new unity input system package under Unity Registry
@webdev_03
@webdev_03 Год назад
@@richbuilds_com Can you explain more plz?
@richbuilds_com
@richbuilds_com Год назад
@@webdev_03 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Yjee_e4fICc.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.
@pak7713
@pak7713 3 месяца назад
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
@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
@adtv_breaking_of_theprinciples
@adtv_breaking_of_theprinciples 6 месяцев назад
my car shaking too much i have tried everything but nothing working pls tell me hoe to make car more stable
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
🫨
@abdulbaasith2995
@abdulbaasith2995 8 месяцев назад
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
@therealtroller
@therealtroller День назад
Fbx support??
@novianavita
@novianavita 8 дней назад
I have a problem, why when I play the car flies?
@user-ph4pg6fb2e
@user-ph4pg6fb2e Год назад
i don't get the thing under the script, where I can change the variables
@RedcrystalTeam
@RedcrystalTeam 11 месяцев назад
same
@FtwentytwoRaptor
@FtwentytwoRaptor 19 часов назад
when i go to start my game my car just flips over and the rear wheels wont move
@SigmaLigmaChannel
@SigmaLigmaChannel Год назад
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.
@Betty_s978
@Betty_s978 Год назад
My car still flies away but slowly
@yuvannishanth
@yuvannishanth Год назад
​@@Betty_s978 mine too
@Greenhairgamer_YT
@Greenhairgamer_YT Год назад
I can’t find the cinema thing
@caiobonato1870
@caiobonato1870 Год назад
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_ Год назад
The issue is the UpdateWheels function. Im not sure what it is for though, I wish they explained it in the video.
@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
@alirustamli4818
@alirustamli4818 Год назад
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 Год назад
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
@smoketastic4158
@smoketastic4158 7 месяцев назад
this video: about how to script a car in unity me: BumBLBEEE YAYYYY!!!!! 😃😃😃 🤖
@filippodeluca9464
@filippodeluca9464 19 дней назад
the wheels detached from the car and evryone of them goes on their own, please help
@trijanshakya1324
@trijanshakya1324 3 месяца назад
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 4 месяца назад
Yeah same idk whats happening
@user-vj4pe2jg2p
@user-vj4pe2jg2p 4 месяца назад
@@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 2 месяца назад
have you frozen your 3d model transformations?
@organiccc
@organiccc 11 месяцев назад
hey my car isnt braking well and takes ages to brake how do i fix this???
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
Apply pressure to brake🙃
@xt321
@xt321 10 месяцев назад
How the car are moving if we haven't write a code for key press to left right or forward
@SigmaLigmaChannel
@SigmaLigmaChannel 10 месяцев назад
The video is fake😅
@thecinolieshere
@thecinolieshere 3 месяца назад
@sigmaligmachannel are you kidding
@eb2151
@eb2151 7 месяцев назад
Why can wheels turn and spin when we have four separate wheel meshes and how
@abbyg267
@abbyg267 3 месяца назад
you find a solution?
@magarmuch3524
@magarmuch3524 Год назад
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 Год назад
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
@BadHumour_100
@BadHumour_100 Год назад
thnx
@forviewing8161
@forviewing8161 Год назад
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 6 месяцев назад
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.
@gamerxmain4157
@gamerxmain4157 8 месяцев назад
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
@zehraaslam2357
@zehraaslam2357 Год назад
my car flips every time I hit the play game mode , Idk whats happening can anyone guide
@SigmaLigmaChannel
@SigmaLigmaChannel Год назад
Have you watched the part where I covered that issue?
@fraggrvofficial
@fraggrvofficial 4 месяца назад
I am having a problem that the car is falling down
@petsiskonstantinos1347
@petsiskonstantinos1347 11 месяцев назад
My cinemachine camera shakes heavilty. i tried the damping to set to 0 in the aim tab but nothing.
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
🫨
@adhikari777
@adhikari777 4 месяца назад
Adjust the horizontal damping to 0.1 instead of 0, and you'll thank me later. :)
@macpotato6997
@macpotato6997 10 месяцев назад
my car shakes a lot when i am trying to turn any reasons why?
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
🫨🫨🫨
@onskuponsku_11eo21
@onskuponsku_11eo21 6 месяцев назад
idont get the script to work
@maaenterprises332014
@maaenterprises332014 Год назад
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 Год назад
@@SigmaLigmaChannel Oh nice! Upload tutorial as soon as possible :) Edit :- I need it too :D
@SigmaLigmaChannel
@SigmaLigmaChannel Год назад
@@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
@mat22.
@mat22. 8 месяцев назад
my car isn't moving, can u help me?
@SigmaLigmaChannel
@SigmaLigmaChannel 7 месяцев назад
No
@xt321
@xt321 10 месяцев назад
Why the tyre are moving but not car
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
What's "tyre" 🤔
@fervzq6474
@fervzq6474 9 месяцев назад
My wheels dont even move and the top of my car just fully comes of as soon as I press start. Any help?
@ajjubhai94shorts60
@ajjubhai94shorts60 9 месяцев назад
same problem
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
Yeah same...
@BasantKumar-bg3fg
@BasantKumar-bg3fg 10 месяцев назад
i'm not able to play my car , how can i fix this ?
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
Get hot wheels
@anussqadeer3181
@anussqadeer3181 5 месяцев назад
Can it support mobile controls?
@SigmaLigmaChannel
@SigmaLigmaChannel 5 месяцев назад
Yes! I've got a video on that
@Kraangbot
@Kraangbot Год назад
My car is fliying wegen I play
@Asku_bacon
@Asku_bacon 6 месяцев назад
where is the script
@theelofiguy
@theelofiguy 8 месяцев назад
man, how to make infinity road like yours?
@SigmaLigmaChannel
@SigmaLigmaChannel 8 месяцев назад
Add a plane to your scene and scale it up. Then you add a texture to it 👍
@theelofiguy
@theelofiguy 8 месяцев назад
@@SigmaLigmaChannel i will try thanks
@theelofiguy
@theelofiguy 8 месяцев назад
@@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
@GK-GYAN1343
@GK-GYAN1343 2 месяца назад
Sir while I play my car automatically lift upward
@GK-GYAN1343
@GK-GYAN1343 2 месяца назад
Please tell any solution
@sirkatheeditor
@sirkatheeditor Год назад
The car just starts flying :/ can someone help?
@tanmaysharma1850
@tanmaysharma1850 Год назад
increase mass of car
@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.
@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 Год назад
There are probably 2 scripts called carcontroller
@samolas-clipes-3361
@samolas-clipes-3361 10 месяцев назад
I think you should learn the basics of unity first before making this
@SRizwanAli
@SRizwanAli 9 месяцев назад
bro pls reply i cant drive the car
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
Mmh
@amit0shakya
@amit0shakya 3 месяца назад
my car is mooving very very slow, it's hardly belive that it's moving
@DanDCool
@DanDCool День назад
100k views 1y ago oooooooooooooooooooooooooooooooooooooooooooooooooooooo 2k likes all the numbers are so even
@DanDCool
@DanDCool День назад
1.14k subs and 258 comments tho
@dradex9562
@dradex9562 Год назад
my wheels are bugging out
@Dxstin
@Dxstin Год назад
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!
@SeanTheTuner_Official
@SeanTheTuner_Official 5 месяцев назад
this is convenient if you dont know how to code!
@adhikari777
@adhikari777 4 месяца назад
car vibrates and becomes blurry while driving.
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
Have U considered glasses? 😃
@adhikari777
@adhikari777 4 месяца назад
I fixed it by increasing the horizontal damping by 0.1 😏
@d.a9490
@d.a9490 7 месяцев назад
my car wheel drive sideway idk why but its side way
@d.a9490
@d.a9490 7 месяцев назад
pls help
@SigmaLigmaChannel
@SigmaLigmaChannel 7 месяцев назад
Make it drive foreward 😁👍
@taraskhan475
@taraskhan475 5 месяцев назад
thank you for your help *sarcasm*@@SigmaLigmaChannel
@SigmaLigmaChannel
@SigmaLigmaChannel 5 месяцев назад
@@taraskhan475 np
@taraskhan475
@taraskhan475 5 месяцев назад
lmao, but yeah I did find this tutorial helpful @@SigmaLigmaChannel 👍
@g99gaming85
@g99gaming85 9 месяцев назад
Why wheel cooliders is not visible to me
@SigmaLigmaChannel
@SigmaLigmaChannel 7 месяцев назад
Put on your glasses 😁👍
@taraskhan475
@taraskhan475 5 месяцев назад
@@SigmaLigmaChannel ☠
@fraggrvofficial
@fraggrvofficial 4 месяца назад
Car is not moving
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
I'm not knowing
@Jevin-gn1vv
@Jevin-gn1vv 10 месяцев назад
I think you were "inspired" by "b3agz" video. Because *many* things are similar...🤨
@realisimgaming
@realisimgaming 4 месяца назад
its a complete copy rip from another youtuber for sure
@mrblibb00vr
@mrblibb00vr 3 месяца назад
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; } }
@d.a9490
@d.a9490 7 месяцев назад
do u still answer question a year later?
@SigmaLigmaChannel
@SigmaLigmaChannel 7 месяцев назад
No
@taraskhan475
@taraskhan475 5 месяцев назад
lmao@@SigmaLigmaChannel
@Areswargod-bv3zi
@Areswargod-bv3zi Месяц назад
bro my car is flying
@hunabku9615
@hunabku9615 4 месяца назад
Copy of ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Z4HA8zJhGEk.html
@SigmaLigmaChannel
@SigmaLigmaChannel 4 месяца назад
😤😤😤
Далее
Получилось у Миланы?😂
00:13
Просмотров 774 тыс.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
CAR DRIVING & RACING GAME - UNITY TUTORIAL PART 1
14:07
Basic Car Movement in Unity
16:04
Просмотров 96 тыс.
Simple Car AI Driver in Unity!
13:17
Просмотров 65 тыс.
Arcade Style Car Controller || Unity Tutorial
21:20
Просмотров 90 тыс.
Developing my FIRST Game
7:46
Просмотров 13 тыс.
How to: Car Controller Unity + Camera + Github link
52:09
PRADO 250 - классная машина!
0:28
Просмотров 3,3 млн
СЕРЕГА ЕЛЫ ПАЛЫ СКОНЧАЛСЯ!!!
0:59
World Record Tunnel Glide 🪂
0:19
Просмотров 31 млн