aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/AI.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-06 10:39:18 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-06 10:39:18 +0100
commit9c2cafd85ed7aa9a860ba25fbe2bd3ccc2439f29 (patch)
tree1b0601f5867acbfe6adf2defe097f067495aedfa /src/crepe/api/AI.h
parent42ecf9c1d0e3ed1f37f99a24f31241b68f978b28 (diff)
Using Rigidbody from now on
Diffstat (limited to 'src/crepe/api/AI.h')
-rw-r--r--src/crepe/api/AI.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/crepe/api/AI.h b/src/crepe/api/AI.h
index 242ff89..046426d 100644
--- a/src/crepe/api/AI.h
+++ b/src/crepe/api/AI.h
@@ -16,7 +16,7 @@ public:
};
public:
- AI(game_object_id_t id, float mass, float max_speed, float max_force);
+ AI(game_object_id_t id, float max_force);
bool on(BehaviorType behavior) const { return (flags & behavior) == behavior; }
void seek_on() { flags |= SEEK; }
@@ -37,8 +37,6 @@ public:
}
public:
- float mass;
- float max_speed;
float max_force;
// The target to seek or arrive at
@@ -51,9 +49,6 @@ public:
float arrive_deceleration = 2.0f;
private:
- vec2 velocity;
- friend class AISystem;
-
int flags = 0;
};