aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/AI.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-09 14:14:03 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-09 14:14:03 +0100
commit857e408d6d3a8631b61ebd283b337819783f092c (patch)
treeeb201efe09f033187c2ce9c51f68f0239e548a5d /src/crepe/api/AI.h
parentcdaf587006053874c2e286a7541e6a2b246ce2b3 (diff)
Implemented oval path
Diffstat (limited to 'src/crepe/api/AI.h')
-rw-r--r--src/crepe/api/AI.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/crepe/api/AI.h b/src/crepe/api/AI.h
index 0dccd5f..c95924d 100644
--- a/src/crepe/api/AI.h
+++ b/src/crepe/api/AI.h
@@ -81,6 +81,20 @@ public:
*/
void make_circle_path(float radius, vec2 center = {0, 0}, float start_angle = 0,
bool clockwise = true);
+ /**
+ * \brief Make an oval path (for the path following behavior)
+ *
+ * \note The path is not relative to the entity's position (it is an absolute path)
+ *
+ * \param radius_x The x radius of the oval (in game units)
+ * \param radius_y The y radius of the oval (in game units)
+ * \param center The center of the oval (in game units)
+ * \param start_angle The start angle of the oval (in radians)
+ * \param clockwise The direction of the oval
+ * \param rotation The rotation of the oval (in radians)
+ */
+ void make_oval_path(float radius_x, float radius_y, vec2 center = {0, 0},
+ float start_angle = 0, bool clockwise = true, float rotation = 0);
public:
//! The maximum force that can be applied to the entity (higher values will make the entity adjust faster)