diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-10 08:48:06 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-10 08:48:06 +0100 |
commit | c8d05f759bb1be0ec99e8f23eaa65c80c36ce03d (patch) | |
tree | 8d176b831b9619cffc953f368be2eefc9e52c8ca /src/crepe/api/AI.h | |
parent | e5e2eefc7f0f6199fe2b36688b2ad64a97784717 (diff) |
Implemented feedback
Diffstat (limited to 'src/crepe/api/AI.h')
-rw-r--r-- | src/crepe/api/AI.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/AI.h b/src/crepe/api/AI.h index c95924d..de574cd 100644 --- a/src/crepe/api/AI.h +++ b/src/crepe/api/AI.h @@ -68,7 +68,7 @@ public: * * \param node The path node to add */ - void add_path_node(vec2 node) { path.push_back(node); } + void add_path_node(const vec2 & node) { path.push_back(node); } /** * \brief Make a circle path (for the path following behavior) * @@ -79,7 +79,7 @@ public: * \param start_angle The start angle of the circle (in radians) * \param clockwise The direction of the circle */ - void make_circle_path(float radius, vec2 center = {0, 0}, float start_angle = 0, + void make_circle_path(float radius, const vec2 & center = {0, 0}, float start_angle = 0, bool clockwise = true); /** * \brief Make an oval path (for the path following behavior) @@ -93,7 +93,7 @@ public: * \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}, + void make_oval_path(float radius_x, float radius_y, const vec2 & center = {0, 0}, float start_angle = 0, bool clockwise = true, float rotation = 0); public: |