- Treballant en les colisions

This commit is contained in:
2023-03-06 12:31:49 +01:00
parent 53212f4bfa
commit 2942b85de7
3 changed files with 78 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ namespace actor
vec3_t pos;
vec3_t size;
uint8_t push;
actor_t *prev;
actor_t *next;
};
@@ -28,6 +30,11 @@ namespace actor
void reorder();
void update(actor_t *act);
void draw(actor_t *act, const bool draw_all=true);
actor_t *get_collision(actor_t *act);
const bool check_collision(actor_t *obj1, actor_t *obj2);
}