#1
|
|||
|
|||
Having objects avoid one another
I made an environment that involves cars traveling at random speeds. At times, certain cars overlap. I want to avoid this by introducing proximity sensors so that when two cars get close to one another, the car in front speeds up.
Right now, the location of my sensors are identical to the location of my targets (i.e. the same car). What can I do to have all the cars be targets for one another AND have their own self sensors, but only involve the front car accelerate when the car behind it gets too close (as opposed to all cars accelerating, which is what my code is doing right now)? Looking for a solution to my flawed logic. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Picking up Vizard Objects on mouse down with collisions | pwsnow | Vizard | 2 | 09-17-2012 02:02 AM |
Trouble picking text3d objects | Salvar | Vizard | 4 | 12-01-2010 03:07 PM |
static or dynamic objects | shahramy | Vizard | 2 | 11-10-2010 12:32 AM |
Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 03:09 AM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 11:01 AM |