Code Monkey home page Code Monkey logo

js-flocking-boids's Introduction

Matthew Page

PHP / Laravel / Mysql - Backend Developer

My working job is a PHP / Laravel backend web developer with experience in MySQL, Livewire, Alpine, CSS and general web development technologies. Over 20 years experience in a wide range of I.T and development roles.

Part time maker of things

In my spare time I've recently started making gadgets with a 3D printer and Raspberry Pi Pico micro controllers.

Other stuff I do

  • Sometimes I take Astrophotographs of big things far, far away
  • Occasioanally I take pictures of very small things upclose with microscopes
  • Fly drones
  • Walk my dog
  • ...

js-flocking-boids's People

Contributors

matthewpageuk avatar

Stargazers

 avatar

Watchers

 avatar

js-flocking-boids's Issues

Perception angle is not being used

When finding other boids within the perception range the angle variable is ignored. Implement the angle code to exclude areas behind the boid.

Possibly just calculate the angle between average boid and self.. if inside preset angle - ok

Optimise the perception routine

Maybe using a spatial grid or buckets. But when they are flocking together they will all be in the same bucket anyway. Smaller radius doesn't result in good flocking.

Look at the variants of this, how can I only look at say 15 nearest boids?

Boid Evolution

All start with a random cohesion, alignment and separation.

Boids on the outside get eaten (not enough time in the flock?)

Boids in the middle die of starvation / over crowding (too much time in close proximity)

Boids that survive long enough get to bread with a random surviving boid - what's the equation? Pick a single setting randomly from either parent, average of the settings, throw in some randomness?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.