Antkeeper  0.0.1
agent.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Christopher J. Howard
3  *
4  * This file is part of Antkeeper source code.
5  *
6  * Antkeeper source code is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Antkeeper source code is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef ANTKEEPER_AI_STEERING_AGENT_HPP
21 #define ANTKEEPER_AI_STEERING_AGENT_HPP
22 
23 #include <engine/math/vector.hpp>
25 
26 namespace ai {
27 namespace steering {
28 
32 struct agent
33 {
35  float mass;
36 
39 
42 
45 
47  float max_force;
48 
50  float max_speed;
51 
54 
57 
60 
63 };
64 
65 } // namespace steering
66 } // namespace ai
67 
68 #endif // ANTKEEPER_AI_STEERING_AGENT_HPP
Artificial intelligence (AI)
Definition: ai.hpp:24
Autonomous agent governed by steering behaviors.
Definition: agent.hpp:33
float max_force
Maximum force.
Definition: agent.hpp:47
float max_speed_squared
Maximum speed squared.
Definition: agent.hpp:53
math::fquat orientation
Orientation quaternion.
Definition: agent.hpp:56
float mass
Mass of the agent.
Definition: agent.hpp:35
math::fvec3 up
Orthonormal basis up direction vector.
Definition: agent.hpp:62
float max_speed
Maximum speed.
Definition: agent.hpp:50
math::fvec3 position
Cartesian position vector.
Definition: agent.hpp:38
math::fvec3 forward
Orthonormal basis forward direction vector.
Definition: agent.hpp:59
math::fvec3 velocity
Velocity vector.
Definition: agent.hpp:41
math::fvec3 acceleration
Acceleration vector.
Definition: agent.hpp:44
Quaternion composed of a real scalar part and imaginary vector part.
Definition: quaternion.hpp:39
n-dimensional vector.
Definition: vector.hpp:44