Module agent

Structs§

ActionState
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.
Agent
For use with the builder pattern https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
Awareness
Always clamped between 0.0 and 1.0.
Behavior
Behavior Component
BehaviorCapability
BehaviorState
PidController
PID controllers (Proportional–integral–derivative controllers) are used for automatically adapting nonlinear controls (like buoyancy for balloons) and for damping out oscillations in control feedback loops (like vehicle cruise control). PID controllers can monitor an error signal between a setpoint and a process variable, and use that error to adjust a control variable. A PID controller can only control one variable at a time.
PidControllers
A Mulit-PID controller that can control the acceleration/velocity in one or all three axes.
Psyche
Sound
Target
Timer
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.
TimerActionIter
An iterator over the variants of TimerAction

Enums§

AgentEvent
Events that affect agent behavior from other entities/players/environment
Alignment
AwarenessState
BrakingMode
When FlightMode is Braking, the agent can use different braking modes to control the amount of overshoot and oscillation.
FlightMode
The desired flight behavior when an entity is approaching a target position.
Mark
SoundKind
TimerAction
TradingBehavior

Constants§

DEFAULT_INTERACTION_TIME
TRADE_INTERACTION_TIME

Functions§

pid_coefficients
Get the PID coefficients associated with some Body, since it will likely need to be tuned differently for each body type
pid_coefficients_for_mode
Get the PID coefficients (for the airship, for now) by PID modes.