RandomWalkBehavior

io.github.srs.model.entity.dynamicentity.behavior.behaviors.RandomWalkBehavior

A Behavior that makes the entity perform a random walk.

It randomly selects speeds for the left and right wheels, with a bias towards forward movement. Occasionally, it may perform a pivot turn to change a direction more sharply.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def decision[F[_] : Monad]: Decision[F]

The decision function for the random walk behavior.

The decision function for the random walk behavior.

Type parameters

F

The effect type.

Attributes

Returns

A Decision that computes the action based on random values.