Module veloren_common_net::synced_components::inner::agent
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.
- For use with the builder pattern https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
- Always clamped between
0.0
and1.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 TimerAction
Enums§
- Events that affect agent behavior from other entities/players/environment
Constants§
Functions§
- Get the PID coefficients associated with some Body, since it will likely need to be tuned differently for each body type