Random Away Movement
This behavior causes an agent to choose a random neighbor each time step and move away from them. If an agent has no visible neighbors it stops moving.
Published by
Shortname
@hash/random_away_movement.rs
Description

This behavior causes an agent to choose a random neighbor each time step and move away from them. If an agent has no visible neighbors it stops moving.

Example usage

This agent will keep moving away from its neighbors until it has none.

const lonerAgent = {
    position: [6, 3],
    behaviors: ["random_away_movement"]
}