Creatures-Developer-Network / C2toDS-Refresh

An attempt to bugfix and polish Moe's C2toDS, with an emphasis on instinct-friendliness and navigability.
7 stars 9 forks source link

Snail Collision Detection #120

Open babyblueboxers opened 1 year ago

babyblueboxers commented 1 year ago

Snails currently use OBST to determine if they are about to run into a wall. Unfortunately, being ground critters this triggers on all but the slightest slopes, meaning they get stuck in any appreciable valley, constantly going back and forth. Need a more robust system, or to simply turn around when they collide with a wall:

doif wall eq left eliif wall eq rght endi

Even so, snails still seem to cluster up, especially after having babies. I suspect the mother is following the baby, and the baby is following the mother recursively. Needs investigation.

babyblueboxers commented 1 week ago

Snails also keep doing this somehow...

image