aboutsummaryrefslogtreecommitdiff
path: root/src/entities
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-21 00:12:00 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-21 00:12:00 -0600
commitd4b40dcf7589bef2bbd0b6b940ee992da9db2343 (patch)
tree42756cfe9a23382bc406732fdfeccce64fddb6d4 /src/entities
parent43e31b6e124da754ef928d22fbb9a1d7640aab4b (diff)
Working collision system
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/antifaShip.c1
-rw-r--r--src/entities/caporale.c1
-rw-r--r--src/entities/generale.c1
-rw-r--r--src/entities/maresciallo.c1
-rw-r--r--src/entities/mussolini.c1
-rw-r--r--src/entities/sergente.c1
-rw-r--r--src/entities/soldato.c1
7 files changed, 7 insertions, 0 deletions
diff --git a/src/entities/antifaShip.c b/src/entities/antifaShip.c
index 1b90ea7..6fe4b66 100644
--- a/src/entities/antifaShip.c
+++ b/src/entities/antifaShip.c
@@ -5,6 +5,7 @@
void initAntifaShip(Entity * entity, Game * game) {
entity->model = &game->assets.models[ANTIFA_SHIP_ASSET];
+ setEntityRadius(entity);
// Acceleration stuff.
entity->useAcceleration = true;
diff --git a/src/entities/caporale.c b/src/entities/caporale.c
index bf95235..bd6fcd5 100644
--- a/src/entities/caporale.c
+++ b/src/entities/caporale.c
@@ -4,6 +4,7 @@
void initCaporale(Entity * entity, Game * game) {
entity->model = &game->assets.models[CAPORATE_ASSET];
+ setEntityRadius(entity);
entity->velocity.angularVelocity = (AxisAngle){(Vector3){1.0, 1.0, 1.0}, 1.0};
}
diff --git a/src/entities/generale.c b/src/entities/generale.c
index 8e86e3f..017f213 100644
--- a/src/entities/generale.c
+++ b/src/entities/generale.c
@@ -4,6 +4,7 @@
void initGenerale(Entity * entity, Game * game) {
entity->model = &game->assets.models[GENERALE_ASSET];
+ setEntityRadius(entity);
entity->velocity.angularVelocity = (AxisAngle){(Vector3){1.0, 1.0, 1.0}, 1.0};
}
diff --git a/src/entities/maresciallo.c b/src/entities/maresciallo.c
index 568d056..6127786 100644
--- a/src/entities/maresciallo.c
+++ b/src/entities/maresciallo.c
@@ -4,6 +4,7 @@
void initMaresciallo(Entity * entity, Game * game) {
entity->model = &game->assets.models[MARESCIALLO_ASSET];
+ setEntityRadius(entity);
entity->velocity.angularVelocity = (AxisAngle){(Vector3){1.0, 1.0, 1.0}, 1.0};
}
diff --git a/src/entities/mussolini.c b/src/entities/mussolini.c
index 9ea54c7..ed6d182 100644
--- a/src/entities/mussolini.c
+++ b/src/entities/mussolini.c
@@ -5,6 +5,7 @@
void initMussolini(Entity * entity, Game * game) {
entity->model = &game->assets.models[MUSSOLINI_ASSET];
+ setEntityRadius(entity);
// PID configs.
PIDConfig stickPIDConfig = {
diff --git a/src/entities/sergente.c b/src/entities/sergente.c
index 4a821dc..2614ec8 100644
--- a/src/entities/sergente.c
+++ b/src/entities/sergente.c
@@ -4,6 +4,7 @@
void initSergente(Entity * entity, Game * game) {
entity->model = &game->assets.models[SERGENTE_ASSET];
+ setEntityRadius(entity);
entity->velocity.angularVelocity = (AxisAngle){(Vector3){1.0, 1.0, 1.0}, 1.0};
}
diff --git a/src/entities/soldato.c b/src/entities/soldato.c
index beec40a..74544aa 100644
--- a/src/entities/soldato.c
+++ b/src/entities/soldato.c
@@ -3,6 +3,7 @@
void initSoldato(Entity * entity, Game * game) {
entity->model = &game->assets.models[SOLDATO_ASSET];
+ setEntityRadius(entity);
// Acceleration.
entity->useAcceleration = true;