generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: SELF DRIVING VEHICLE

Previous Thread :: Next Thread 
mrmcmuffinz123 is online. mrmcmuffinz123
Joined: 04 Aug 2014
Total Posts: 810
22 Oct 2017 10:12 PM
i know how i'd like to set up this type of thing but i don't know how to get the vehicle to actually do stuff. Could somebody explain how i could make a self driving car in this way: You have a bunch of bricks in a circle or something. I want the car to move to each brick also steer to them as well.


Meme Lord Muffin
Report Abuse
mrmcmuffinz123 is online. mrmcmuffinz123
Joined: 04 Aug 2014
Total Posts: 810
22 Oct 2017 10:13 PM
so if I had a brick here and a brick on this part of the post i would like the car to move across this post. if there was a turn in it the car would steer here.


Meme Lord Muffin
Report Abuse
thebayou is not online. thebayou
Joined: 21 Dec 2014
Total Posts: 628
22 Oct 2017 10:15 PM
Srsly? you're going to HARDCODE it? *Sigh*

Use neural nets- train them elsewhere, either using your own library or use someone else's (like TensorFlow :C), and then spin up a simple neural network framework in Lua and apply the trained weights. Boom, you have a self-driving car.

Of course it won't be this easy because the car needs to accept the same parameters it would in Roblox, but you could also just do the whole training in Roblox itself, but that might be slower


||THEBAYOU|| - Almost famous dude
Report Abuse
mrmcmuffinz123 is online. mrmcmuffinz123
Joined: 04 Aug 2014
Total Posts: 810
22 Oct 2017 10:17 PM
well i mean I want it to drive in lanes. I've seen what I want to do done before. All i'm asking is for steps to make a basic car move to bricks. and steer to bricks that are not always in straight lines


Meme Lord Muffin
Report Abuse
thebayou is not online. thebayou
Joined: 21 Dec 2014
Total Posts: 628
22 Oct 2017 10:18 PM
Pathfinding service?

Simple lerping? Which one?


||THEBAYOU|| - Almost famous dude
Report Abuse
mrmcmuffinz123 is online. mrmcmuffinz123
Joined: 04 Aug 2014
Total Posts: 810
22 Oct 2017 10:21 PM
alright i think you know what i'm talking about. I'm just trying to accomplish this with something basic before i do it with a far more advanced chassis. which i mean a vehicle seat on top of a brick with cylinders in it.


Meme Lord Muffin
Report Abuse
thebayou is not online. thebayou
Joined: 21 Dec 2014
Total Posts: 628
22 Oct 2017 10:24 PM
Just lerp the car to each brick?

http://wiki.roblox.com/index.php/Lerp



||THEBAYOU|| - Almost famous dude
Report Abuse
mrmcmuffinz123 is online. mrmcmuffinz123
Joined: 04 Aug 2014
Total Posts: 810
22 Oct 2017 10:31 PM
“Self driving car” not “self positioning car” I decided i’m Just going to make the wheels turn to the rotation of the point b brick and then calculate a speed to reach the goal of the car rotating to that as well as reaching point b
Report Abuse
thebayou is not online. thebayou
Joined: 21 Dec 2014
Total Posts: 628
22 Oct 2017 10:32 PM
Oh well then what you could do is:

Drive at a constant speed

Rotate wheels towards target while driving


||THEBAYOU|| - Almost famous dude
Report Abuse
Wowgnomes is online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
23 Oct 2017 12:08 AM
use a basic car and just set throttle to 1 :)


Report Abuse
IAmBW is online. IAmBW
Joined: 13 Jan 2013
Total Posts: 698
23 Oct 2017 12:10 AM
Easy

Map out all the roads

Make the engine determine the fastest route by studs while considering being on the right side of the road according to the cars lookvector
Report Abuse
mrmcmuffinz123 is online. mrmcmuffinz123
Joined: 04 Aug 2014
Total Posts: 810
23 Oct 2017 06:00 AM
What are some ways to map out the roads? My guess is use path finding service to find all the routes to get to point b and then choose the ######### But how would I map them?
Report Abuse
LifeInDevelopment is not online. LifeInDevelopment
Joined: 10 Nov 2015
Total Posts: 670
23 Oct 2017 07:12 AM
You could use A* pathfinding, and set the nodes to the correct lane. Then just lerp your vehicle to each node, or use a body mover?
Report Abuse
annabet_h is not online. annabet_h
Joined: 13 Mar 2016
Total Posts: 1475
23 Oct 2017 07:31 AM
turn the wheels to each path coordinate
idk i'm dumb
also neural nets are too hardddddddddddddddddddddddddd
Report Abuse
annabet_h is not online. annabet_h
Joined: 13 Mar 2016
Total Posts: 1475
23 Oct 2017 07:33 AM
wait !!!

you can do that A* pathfinding algorithm thing
like, convert a region to like a grid and like make a path for driving or something
then turn the wheels to each path coordinate or something
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image