Get ID of vehicle in front
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
Except that will check vehicles in all directions. The OP specifically asks for the front (speed radar?). The way I'd do it would be with the streamer plugin. You need to calculate these 3 points (A, B and C) with trigonometry as the input for CreateDynamicPolygon. Then use a similar loop as demonstrated above, while filtering out any vehicles not in the zone.

[i m g]http://puu.sh/9jovP/fa64a6d157.png[/img]
Thanks, Vince. However, trigonometry isn't exactly my strong point so I'd appreciate it if you could point me in the right direction here.


If I know point A, how can I work out points B, C and D (where line AC is exactly parallel with the sides of the car) based on the rotation of the car?
Reply


Messages In This Thread
Get ID of vehicle in front - by CaveDweller - 07.06.2014, 16:33
Re: Get ID of vehicle in front - by Faisal_khan - 07.06.2014, 20:47
Re: Get ID of vehicle in front - by CaveDweller - 07.06.2014, 21:15
Re: Get ID of vehicle in front - by Vince - 07.06.2014, 21:16
Re: Get ID of vehicle in front - by CaveDweller - 07.06.2014, 21:23
Re: Get ID of vehicle in front - by Threshold - 07.06.2014, 22:59
Re: Get ID of vehicle in front - by CaveDweller - 10.06.2014, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)