09.06.2010, 23:30
Hi,
I've made a simple range detection which uses the position of the bus as a centre and checks whether anyone is in a 50 metre radius of its position - if so it stops... great.
Trouble is when you drive on the other side of the road or behind the bus it slamms on its brakes as you are in its radius... not so cool.
What i'd like to know is whether anyone could point me in the right direction of how to make the bus "look" in front of itself, almost like a beam rather than a whole road/area - i suspect this would mean all kinds of brain melting maths work but have no clue where to start!
Thanks in advance,
ozzie
I've made a simple range detection which uses the position of the bus as a centre and checks whether anyone is in a 50 metre radius of its position - if so it stops... great.
Trouble is when you drive on the other side of the road or behind the bus it slamms on its brakes as you are in its radius... not so cool.
What i'd like to know is whether anyone could point me in the right direction of how to make the bus "look" in front of itself, almost like a beam rather than a whole road/area - i suspect this would mean all kinds of brain melting maths work but have no clue where to start!
Thanks in advance,
ozzie