Re: Vehicle collisions.
Eric DeWitt <[email protected]> Wed, 4 May 2005 20:34:51 -0400
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
The easiest way to do this would be through collision detection, which would mean that you would setup your object to detect collisions with a BraitenbergLight. + to init: self handle-collisions with-type "BraitenbergLight" with-method "light-dissappear". Look at section 6.2 of the docs. -eric On May 4, 2005, at 17:17, Cavan Fyans wrote: > 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 > _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve