fifth_day


improved controller by add ing some swarmy logic:

planes now move away şf they are too close, and move to each other if they are too far apart. They only care about closest 3 planes.

in future they will also need to align with their neighbours.

I had to reduce number of planes for performance reasons. Also added stop metadata to test the controller, need to optimise it. I was planning on adding controller by using fields etc. but they only trigger when something enters and exits. so I would have to keep an internal list of planes and manage it. Maybe I should try gain that in future.

planes move to or away just by changing direction. so we only need to know if the other plane is to our left or right. to move towards it we change aour direction to it (left or right)


at weekends my workdays for this project sometimes increases. I don't keep track of it though

Files

swarm.zip Play in browser
May 11, 2024

Leave a comment

Log in with itch.io to leave a comment.