Darwinbots Forum
Code center => Bugs and fixes => Topic started by: Greven on June 23, 2005, 10:04:15 AM
-
With walls another overflow occured!
-
Specifics?
I never use walls
-
I did just what to use walls for making some interesting sims, I draw the line and 1 sec after an overflow occured!?? everything else were like normal.
-
OK there are some weird things going on here.
1) it appears that walls were screwed up a little when the shpae functions were put in. Basically a wall has no shape so a division by zero error occurs.
Fixed that easily enough.
2) Another overflow happend just after when a robot looked at a wall. Apparently the wall is moving at a speed of -20,000 twips per cycle. :blink: even though it is quite obviously stationary.
Working on that one.
-
WOW -20,000! LOL
-
Yup weird eh?
It is because walls are passed over in almost all of the calculation routines so the velocity never gets capped or zeroed out.
Fixed this too.
Incidentally, tie feeders can attach themselves to walls. I didn't realize that.
A wall is easy to identify though. It has an energy of exactly 1.