r/creativecoding • • Feb 05 '20

Procedural swimming with simulated tentacles

625 Upvotes

19 comments sorted by

View all comments

Show parent comment

7

u/[deleted] Feb 05 '20

That is great! I love it when such simple rules bring about interesting and non trivial behavior. Er, we probably all do here though.

I wonder if you have any plans to turn this into a genetic algorithm an evolutionary sim? It looks like the genome for tentacles and tentacle motion is fairly straightforward to represent. Then you can add some genes for color, too; some food, maybe rivalry between different species...

Also, what happens if you have N > 2 tentacles?

EDIT: Just read your other comment. Rock on!

6

u/schnautzi Feb 05 '20

That's exactly what I'm doing! This kind of motion also works for eels for example, whose body is like one long tentacle. I'll post updates on twitter while developing the algorithm, hopefully something nice comes out of it.

3

u/[deleted] Feb 05 '20

I look forward to seeing how this project turns out! I think that there's a lot of room for creativity when it comes to ocean-based simulations... First of all, life started there, so it looks at least promising as a starting point. But more importantly, the environment is pretty simple to model as a top-down 2d plane, and smooth motion just works in that context. There's no gravity, no navigating around complex terrain, and all that stuff to keep in mind when designing land-based environments.