Archive Browser
Download ChemotaxisSimulation.zip, last updated 02/11/2020 (529.88 KB)
Download- md5: d0f0a74f8f3c043fabf60aeb07356f69
- sha1: 645a77d0f7184873fe70c2bb375833e564b348be
- sha256: da9ab3cfc5e17e120b6660a137012b6eca68a7a3218cb213b3e0e3eb9445b104
const width = 100;
const height = 100;
simulation.environmentSeed = 20200806;
simulation.movementSeed = 2232;
simulation.size = new size(width, height);
simulation.minimumAttractorStrength = 1;
simulation.maximumAttractorStrength = 128;
simulation.minimumRepellentStrength = 1;
simulation.maximumRepellentStrength = 128;
simulation.attractorCollisionAction = CollisionAction.ReduceSelf;
simulation.repellentCollisionAction = CollisionAction.ReduceOther;
simulation.respawnAttractor = true;
simulation.wrap = true;
simulation.binaryFission = false
simulation.solidStrands = false;
simulation.attrition = false;
simulation.mobileRepellents = true;
simulation.Reset();
for (let index = 0; index < width; index++)
{
var nox
nox = new chemoeffector();
nox.Position = new point(index, 1);
nox.Strength = 10;
nox.Heading = new point(0, 1);
//nox.CollisionAction = CollisionAction.DestroyOther;
simulation.Repellents.Add(nox);
}
for (let index = 0; index < 5; index++) {
simulation.AddAttractor();
}
for (let index = 0; index < 100; index++) {
simulation.AddStrand();
}
// var food;
// food = new chemoeffector();
// food.Position = new point(width / 2, height / 2);
// //food.Strength = 2147483647
// food.Strength = width;
// simulation.Attractors.add(food);
// var strand;
// strand = new strand();
// strand.Position = new point(width / 4, height / 4);
// strand.Heading = new point(1, 0);
// simulation.Strands.add(strand);
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate