Description
Hi :)
I would love to borrow your code to use in my program that I write for learning purposes only. There, stuff is following the mouse cursor on screen.
You implementation of boids looks very nice and seems also very performant. Now, your code isn't the easiest to read. Much math. Very complex. Variables have names like: "tAvejAng". What's that? Time-average-junction-angle? xD
Edit: Well I know have "targetAverage_j_Angle" and that basically represents my understanding of your code.
I like the new stuff I learn from your code: self.boidSize = 22 if isFish else 17
and if (neighborCount := len(neighborBoids)) > 1:
I didn't know about that.. :)
I generally know how to get and use the mousecursor postion and speed. The only issue is that it seems like the movement is all random, that there is no destination I could hijack. The destination is some ephemeral "where the most boids are", I guess. Maybe... it's so hard to read xD
Can you give me a hint where to start?
I hope you'll see this in due time. But if not, thenn I have to figure it out. Maybe I start by changing variable names.
Thank you