Module veloren_server::sys::agent::util
source · Functions§
- Projectile motion: Returns the direction to aim for the projectile to reach target position. Does not take any forces but gravity into account.
- Handles whether an agent should attack and how the agent moves around. Returns whether the agent should attack (so that individual tactics can determine what specific attack to use)
- Calculates whether the agent should continue chase or let the target escape.
- Gets alignment of owner if alignment given is
Owned
. Returns original alignment if not owned.