20 #ifndef ANTKEEPER_AI_STEERING_BEHAVIOR_WANDER_HPP
21 #define ANTKEEPER_AI_STEERING_BEHAVIOR_WANDER_HPP
math::fvec3 wander_2d(const agent &agent, float noise, float distance, float radius, float &angle)
Steers an agent in a continuously shifting random direction on the yaw plane.
math::fvec3 wander_3d(const agent &agent, float noise, float distance, float radius, float &theta, float &phi)
Steers an agent in a continuously shifting random direction.
Artificial intelligence (AI)
constexpr T phi
Golden ratio constant.
T angle(const vector< T, N > &from, const vector< T, N > &to)
Calculates the angle between two direction vectors.
T distance(const vector< T, N > &p0, const vector< T, N > &p1)
Calculates the distance between two points.