math::fvec3 seek(const agent &agent, const math::fvec3 &target)
Attempts to steer an agent so that it moves toward a target.
Artificial intelligence (AI)
constexpr int difference(T x, T y) noexcept
Returns the number of differing bits between two values, known as Hamming distance.
constexpr T sqr_distance(const vector< T, N > &p0, const vector< T, N > &p1) noexcept
Calculates the square distance between two points.
vector< T, N > sqrt(const vector< T, N > &x)
Takes the square root of each element.
constexpr T dot(const quaternion< T > &a, const quaternion< T > &b) noexcept
Calculates the dot product of two quaternions.
@ target
Vertex morph target (vec3)
Autonomous agent governed by steering behaviors.
float max_force
Maximum force.
math::fvec3 position
Cartesian position vector.
math::fvec3 velocity
Velocity vector.