This site requires JavaScript, please enable it in your browser!
Greenfoot back
jdkdoen05
jdkdoen05 wrote ...

2022/1/2

Programming a car

jdkdoen05 jdkdoen05

2022/1/2

#
Can someone give me a code for the control of a car,which should drive on a track like the car in thze link below. Programming a car.
danpost danpost

2022/1/2

#
The left and right arrows to turn, up to accelerate and, although I didn't test it well, down is probably to decelerate. I cannot tell what mechanism controls the drag off the track, but possibly background color testing or maybe the center of the track is expressed in formulas and deviation from the center by a specified amount will trigger the drag. Being the track curves are not very clean cut, I would presume the former of the two ways.
You need to login to post a reply.