PhototaxisBehavior
io.github.srs.model.entity.dynamicentity.behavior.behaviors.PhototaxisBehavior
object PhototaxisBehavior
A behavior that moves towards the strongest light source based on light sensor readings.
It calculates the best direction to move towards the light and adjusts its wheel speeds accordingly. If no light is detected, it defaults to moving forward.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PhototaxisBehavior.type
Members list
In this article