# giving up on boids

Below is the last version of boids I used before I made the decision to give up on them completely and begin to program from scratch a set of rules for pairs of coloured circles to obey. I just found the boids object to be too chaotic. No matter how I calibrated it, the results looked like flocking insects or animals (not surprisingly) but not like a model of human behaviour in a milonga. Back to the drawing board. Not entirely wasted though, I took forward a couple of nifty equations worked out for calculating distances between two objects in a 2D space – the expression: expr sqrt(((\$f1-\$f2)*(\$f1-\$f2))+((\$f3-\$f4)*(\$f3-\$f4))) is based on the trig equation: a squared + b squared = c squared, to give the hypotenuse of a right angle triangle. (dredged that one up from the recess of my GCSE maths mind. Never thought it would be useful again at the time!). Also the expression: expr ((\$f2-\$f1)/2)+\$f1 to find the coordinate midway between two other coordinates on one axis. this is the point about which the pair of dots orbit. actually, I could vary this value so that they don’t always orbit about their combined centre. Hmm. must do that tomorrow.

1. Maverick says: