Vehicle collisions.
Cavan Fyans <[email protected]> Wed, 4 May 2005 22:17:11 +0100
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm still running braitenberg simulations, i was trying in vain to make the light dissapear when one of the vehicles runs over it. The way i was trying to go about this was to have a conditional in the the 'iterate' method of 'main' (e.g. if light location = vehicle location....) but i could not call the variables asociated with the vehicles fom main (get location, set location etc)....presumably as they are local variables and not global variables (something i could not find in breve) am i going about this in the wrong way? or does breve have a simple way of doing this? or is it just a case of global/local variables? As usual any help would be great! thanks. Cav. -the code is linked below..i took out all unnessicary parts i was playing around with...this is the basis of the code where i want to do the above 'collision detection': http://bb.1asphost.com/CavSymbiotick/g2.txt _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve