aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/AI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/AI.h')
-rw-r--r--src/crepe/api/AI.h6
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: