07.06.2014, 21:23
Quote:
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] |
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?