PDA

View Full Version : How intercept car position



SesillaAndromeda
21-09-2011, 12:50 AM
Hi there,

how can i intercept if the car is up or down the bridge?

618

Thanks
Sesilla

czar
21-09-2011, 01:17 AM
The way I did it is to have an offscreen representation of the track. I use black and white to define can and can't drive areas and then used colours to determine if driver was about to go over a bridge etc. So when pixel check showed green then set car going over and when red back on ground level

Ingemar
25-09-2011, 09:04 PM
Cut the whole track into four sections, top, upper bridge, bottom, lower bridge. Make each section know which other two it connects to. So from the right side of the top section, you can only move to the bottom bridge section.

At least that's the way I would do it.