Module veloren_common::comp::agent

source ·

Structs

  • State persistence object for the behavior tree Allows for state to be stored between subsequent, sequential calls of a single action node. If the executed action node changes between ticks, then the state should be considered lost.
  • Always clamped between 0.0 and 1.0.
  • Behavior Component
  • PID controllers are used for automatically adapting nonlinear controls (like buoyancy for airships) to target specific outcomes (i.e. a specific height)
  • A time used for managing agent-related timeouts. The timer is designed to keep track of the start of any number of previous actions. However, starting/progressing an action will end previous actions. Therefore, the timer should be used for actions that are mutually-exclusive.
  • An iterator over the variants of Self

Enums

Constants

Functions

  • Get the PID coefficients associated with some Body, since it will likely need to be tuned differently for each body type