Created
January 13, 2021 05:57
-
-
Save rvishwajith/9ab0ece947c2d298b6342284f3c667d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
centerOfMass() // A general rule for finding the overall center | |
Vector result | |
FOR b in Boids | |
result += b.position | |
result /= Boids.length | |
RETURN result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment