and have to recall how to have a bot turn when it reaches a border
*.edge returns 1 when the robot hits a border. Resets every round so the cycle after it will be 0 again.
yup. got it.
added it to the ants ...
otherwise in toridial mode, they just bump into a wall ....
'looking for borders
cond
*.eye5
-1
!=
start
314 rnd 157 sub .aimdx *.edge mult store 'rnd turn left or right 45 degrees
stop
and in 2.4, as the body size gets larger/more massive ...
they go 'outside' the field ... and unless they have some
sort of turning thing, never come back in.
I still haven't fingered out why Num's enabled that to happen.
I prefer the small field of play and not so many bots ...
otherwise those ants certainly do 'crawl' along.
I set them to 30 vel too, instead of 10.
using version 2.4 now, as I like the physics ...
and it seems pretty stable.
couple questions:
what's the difference between a worker and a warrior?
what is the purpose of fixing a feeder's position if it is not feeding a queen?
the queens often don't reproduce if their feeders
happen to 'buy it' and not get back to them.
there is a gene for them to repro if nrg < than 2000 but I don't see it happen.
they just continue to lose energy until <500 and then have 100 added.
and they eventually die too, not sure how.
seeing as I am using non-toridal and a bit of gravity ...
most of my veggies are near the bottom.
so I want to have the newborns tend to head towards
the bottom to search for food, rather than randomly go in
any direction.
assume this would be .setaim:
' worker selects direction to head after birth
cond
*.robage 10 =
start
1256 rnd .setaim store
stop
1256 covering all angles ....
looks like 0/1256 is to the right ...
314 is up, 628 left, and 942 down ...
so to get a range of 90 degress down ...
45 to -45 degrees from straight down I would need:
314 rnd 785 add .setaim store yes?
I tried it and it works ...
but might as wll leave this here for others who may
be lurking and know as little as I. ;)
anyway, watching the project and coders ...
and playing with these ants ... who knows ....
I may finger some of this out yet.
so I hope no one minds my asking questions.
would like to have a wiki page for questions like this as well
thinking it is much easier to talk there and not lose where in
some thread someone said what ...
but I don't think many people visit it. yet. ;)
we will see.