From b3de05173338e83f2473976e4ad6f8331202c485 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 12 May 2024 18:06:59 -0400 Subject: . --- src/bullet.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/bullet.c') diff --git a/src/bullet.c b/src/bullet.c index 6fca87e..7bd16c5 100644 --- a/src/bullet.c +++ b/src/bullet.c @@ -12,6 +12,8 @@ struct } Bullet; +float bullet_speed = 0.5; + Bullet bullets[100]; void @@ -69,9 +71,9 @@ bullet_collision_check(void) { bullets[i].team = 0; } - bullets[i].position.x += bullets[i].direction.x * 0.25; - bullets[i].position.y += bullets[i].direction.y * 0.25; - bullets[i].position.z += bullets[i].direction.z * 0.25; + bullets[i].position.x += bullets[i].direction.x * bullet_speed; + bullets[i].position.y += bullets[i].direction.y * bullet_speed; + bullets[i].position.z += bullets[i].direction.z * bullet_speed; Vector3 enemypos = { 0 }; if (bullets[i].team == 1) { -- cgit v1.2.3