Slava,

A long time boids bug is that sometimes the boids will disappear over time. 
The problem is that occasionally the velocity of a boid gets set to

        { 1.0/0.0 1.0/0.0 }

putting the boid in an unrenderable state. This value comes from calling 
normalize with a vector of length 0. My naive workaround to see if this was 
the cause of the bug is:

        : normalize* normalize ;

        : normalize ( u -- v ) { 0.001 0.001 } v+ normalize* ;

This seems to help. I'll try to add a less kludgy fix later.

Ed

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to