From f98e6d4ea4ee52b298a7d9a9731da4c020bb4dfe Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Fri, 18 Aug 2023 00:18:53 -0600 Subject: Some aim thingy --- src/bullets.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bullets.h') diff --git a/src/bullets.h b/src/bullets.h index fea7961..45c96ea 100644 --- a/src/bullets.h +++ b/src/bullets.h @@ -1,6 +1,7 @@ #include "gameCommon.h" #include "entity.h" #include "world.h" +#include #ifndef BULLET_H #define BULLET_H @@ -23,6 +24,9 @@ typedef struct BulletHitInfo { // Uses entity postion and direction to create bullet ray. Bullet createBulletFromEntity(Entity entity, float damage); +// Uses direction argument for direction indeed. +Bullet createBulletFromDirection(Entity entity, Vector3 direction, float damage); + // Shoot this fucker. BulletHitInfo shootBullet(World * world, Bullet bullet); -- cgit v1.2.3