Try at https://xanxys.github.io/bonsai-small.
Bonsai world consits of cells and genomes that controls internal signals, growth, self-reproduction. Light is the sole energy for cells, and they compete for the resource in a randomly generated terrain.
The project's ultimate goal is to achieve open-ended life simulation.
We're trying gradual approach.
- Create an initial system with very structure/complex physics, in which plants are guaranteed to evolve with simple human-desgined genome.
- Repeat these until satisfied:
- Replace a part of physicsl rule with genome data. Hand-design and give extra energy source.
- Evolve the genome to fit the new physics by gradually reducing energy.
- Very simple physics & initial genome (too intricate to human-design), open-ended evolution potential.
See https://github.com/xanxys/bonsai-small/PHYSICS.md for physics model details.
git clone https://github.com/kripken/ammo.js/
Add following line and re-compile ammo.js using docker.
interface btTransform {
...
[Value] btVector3 invXform([Const, Ref] btVector3 inVec);
...
}
interface btGeneric6DofConstraint {
...
void setFrames([Const, Ref] btTransform frameA, [Const, Ref] btTransform frameB);
[Const, Ref] btTransform getFrameOffsetB();
...
}
- Discontinued "massive" version at https://github.com/xanxys/bonsai-massive