tag:blogger.com,1999:blog-2027735342084997807.post5221064883917147104..comments2023-09-13T05:21:19.212-07:00Comments on COMPUTER ANORAK: Unity3d Car Game Tutorial-8 (Adding AI Cars)Anonymoushttp://www.blogger.com/profile/14855076402289984919noreply@blogger.comBlogger24125tag:blogger.com,1999:blog-2027735342084997807.post-70547167526772836462015-02-06T03:24:11.364-08:002015-02-06T03:24:11.364-08:00GluedBrain i need AICar script, the link doesn'...GluedBrain i need AICar script, the link doesn't workTamesforevernoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-79110402177555010212015-02-02T14:08:22.659-08:002015-02-02T14:08:22.659-08:00hi sir, your link is not avaliable. can you fix it...hi sir, your link is not avaliable. can you fix it? really i need it<br />thanksرز عبد اللهnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-7015010926098280732013-12-12T03:34:37.797-08:002013-12-12T03:34:37.797-08:00I followed this tutorial from the beginning and I ...I followed this tutorial from the beginning and I made everything like in this post but my ai car goes backwards and flies over stuff. what should I do?adinoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-62774436122279483802013-11-25T18:55:13.860-08:002013-11-25T18:55:13.860-08:00try changing the values of "ENGINE TORQUE&quo...try changing the values of "ENGINE TORQUE" in the inspector....you can change other values to your need as well..GluedBrainnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-77856311378926509312013-11-25T18:52:34.824-08:002013-11-25T18:52:34.824-08:00the player car should be used...and yeah regarding...the player car should be used...and yeah regarding that error, I too faced that error, but it was due to the soundcontroller, if it is present on the AI car remove that component from it....I guess this should solve the issue...GluedBrainnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-77667941262971156832013-11-24T08:13:57.635-08:002013-11-24T08:13:57.635-08:00Hi, i found 2 car when i search "car" in...Hi, i found 2 car when i search "car" in project. 1 look like player car, 1 completely nothing. What car i should drag into hierachy. Im done anything u said above with the car (i duplicate car already in hierachy) but when i press play nothing happen and car wont move. Can u teamviewer and help me?Ace Geraltnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-88600356766834927822013-11-20T05:29:04.261-08:002013-11-20T05:29:04.261-08:00Thanks alot for this amazing tutorials.
I just wa...Thanks alot for this amazing tutorials.<br /><br />I just wanted to know how to decrease the cars speed, its too fast.<br /><br />looking forward for your reply.<br /><br />Thanks a lot once again.Edwinnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-58581736840626540102013-09-03T20:38:41.384-07:002013-09-03T20:38:41.384-07:00Well, yea I guess this is caused by the "stat...Well, yea I guess this is caused by the "static" variables, make sure you initialize them to their respective initial values to get rid rid of this flaw..GluedBrainnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-28089950232451732272013-09-02T04:04:46.809-07:002013-09-02T04:04:46.809-07:00thank you Sir for your previous replies,my game se...thank you Sir for your previous replies,my game seems now to be perfectly working.i just have one problem left , i did the split screen 2-players game.the problem is once i've finished the game and hit play again,the game displays you finished the race in 0 seconds which is a new recodrd.Is there a way i can reinitialize my variables to tackle that problem.many thanks !!Amine Ben Cheikhnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-6787692428195409952013-08-30T11:20:44.677-07:002013-08-30T11:20:44.677-07:00The AICar script that I have posted her takes care...The AICar script that I have posted her takes care of that problem (the car facing the waypoints always) Make sure that you have not skipped any step. Play with the AICar values like torque and other values you can increase the speed of the the AICar.<br />Unfortunately I have do not have the track designed right now, so I cannot tell you exactly, but try changing the values of AICar, you'll get to know what works and what does not.<br /><br /><br />Happy Coding :)GluedBrainnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-1889519576158601442013-08-30T07:53:34.066-07:002013-08-30T07:53:34.066-07:00Thank you Sir for your reply.Adding more waypoints...Thank you Sir for your reply.Adding more waypoints in sharp turns did the job very well.Just another issue Sir : i made a guitext to display gear and i noticed the car never goes beyond the 2nd gear, is there any way to make it go faster? and as a last problem, sometimes the car do follow the waypoints backwards,is there any way to make sure the car is always facing waypoints when it is following them? Thank you again Sir for your time and your precious help.Best regards !Amine Ben Cheikhnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-62850540067063245192013-08-30T01:33:48.759-07:002013-08-30T01:33:48.759-07:00Hello Amine Ben Cheikh,
You are not supposed to p...Hello Amine Ben Cheikh,<br /><br />You are not supposed to place the waypoints very far away from each other, make sure you place them as close as you can.<br /><br />For the AICar to avoid the obstacles you need to create a custom racing track, because in the demo tracks they have used many meshes, so it is hard to make it work with the default track.<br /><br />Having said that you can avoid other obstacles, refer to my post here,<br /><br />http://gluedbrain.blogspot.in/2013/06/unity3d-car-game-tutorial-10-adding.htmlGluedBrainnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-54021090025710480472013-08-29T20:18:01.375-07:002013-08-29T20:18:01.375-07:00thank you for this great serie of tutorial Sir! I ...thank you for this great serie of tutorial Sir! I just have an issue: when the car doesn't sometimes follow precisely the waypoints and hits the sides of the track. it stops completely.when i push it with the player car and make it close to the next waypoint, it accelerates again.how can i fix this or how can i make it not collide with the sides of the track in first place.thanksAmine Ben Cheikhnoreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-14983594024320674832013-08-14T07:56:39.899-07:002013-08-14T07:56:39.899-07:00Cool! Good Going! Now try to add collision avoidin...Cool! Good Going! Now try to add collision avoiding property to the AI_Car. You can follow the part ten of this tutorial series for that. Happy Coding!Anonymoushttps://www.blogger.com/profile/14855076402289984919noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-34433408647181242772013-08-13T21:46:14.855-07:002013-08-13T21:46:14.855-07:00I'm done ..
i have solved why "AI Car&quo...I'm done ..<br />i have solved why "AI Car" was jump and jump, its because my additional script, and when i remove that, the "AI Car" was not jump and jump again ...<br /><br />and about "AI Car" not follow the lines waypoint, i also think to put the waypoint not far away from each other, and its work .. But i still not understand, how the "AI Car" can turn smoothly ..<br /><br />thanks before "Glued Brain" for your answer my question.<br />warm regardsMy Noteshttps://www.blogger.com/profile/15515873504285709323noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-70293783450061059542013-07-28T22:06:54.824-07:002013-07-28T22:06:54.824-07:00Hello Rian,
If the car is behaving in an unexpecte...Hello Rian,<br />If the car is behaving in an unexpected manner then you need to change the properties of the wheel colliders..<br />If the car is behaving unexpectedly when taking a turn, then you have to adjust the center of mass in the AI_Car script..<br />And coming to the ai car not following the waypoints sometimes, make sure the waypoints are not far away from each other..Anonymoushttps://www.blogger.com/profile/14855076402289984919noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-46624535486848422992013-07-28T21:25:23.921-07:002013-07-28T21:25:23.921-07:00Thank you for your tutorial Sir,
but may i ask you...Thank you for your tutorial Sir,<br />but may i ask you question ...<br />i have done to try this script, and its work,<br />but sometime, the "AI Car" was jump and jump, and sometime the "AI Car" not follow the lines waypoint, maybe you can explain to me why it happend ,<br /><br />thanks beforeMy Noteshttps://www.blogger.com/profile/15515873504285709323noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-89546733802755772592013-06-05T10:11:06.987-07:002013-06-05T10:11:06.987-07:00Thanks for the comment and +1 mate :)Thanks for the comment and +1 mate :)Anonymoushttps://www.blogger.com/profile/14855076402289984919noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-43696617312330193632013-06-05T00:17:43.266-07:002013-06-05T00:17:43.266-07:00I was looking for this sir. Thank you so much for ...I was looking for this sir. Thank you so much for this :) +1Anonymoushttps://www.blogger.com/profile/03631401968861057590noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-55804865282911211652013-06-01T12:00:01.455-07:002013-06-01T12:00:01.455-07:00Well, tell me what is your issue, i will try to he...Well, tell me what is your issue, i will try to help you out..Anonymoushttps://www.blogger.com/profile/14855076402289984919noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-38251102646298940542013-06-01T08:57:19.065-07:002013-06-01T08:57:19.065-07:00do u have a facebook or something so we can talk.....do u have a facebook or something so we can talk.. really need your assistance.. thx!Anonymoushttps://www.blogger.com/profile/07224136210110183671noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-8116700260638171522013-06-01T08:55:47.670-07:002013-06-01T08:55:47.670-07:00Sir why its not functioning on me.. </3Sir why its not functioning on me.. </3Anonymoushttps://www.blogger.com/profile/07224136210110183671noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-32758058228025152612013-05-30T21:11:29.611-07:002013-05-30T21:11:29.611-07:00:) i posted it just now! :) :) i posted it just now! :) Anonymoushttps://www.blogger.com/profile/14855076402289984919noreply@blogger.comtag:blogger.com,1999:blog-2027735342084997807.post-87900520158753094892013-05-30T20:43:56.277-07:002013-05-30T20:43:56.277-07:00Thanks man. Your tutorials are the best \m/Thanks man. Your tutorials are the best \m/Anonymoushttps://www.blogger.com/profile/02417310259493065150noreply@blogger.com