diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-09-25 17:06:56 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-09-25 17:06:56 -0400 |
| commit | 50f5164c529d57aeaf5c435b33683afabfc25c40 (patch) | |
| tree | 8af3aac1896196fceabc2daa5134e7b298d6c774 /balls.h | |
| parent | 89e07aae62dae995faa7540fc38e66fa0c0f7369 (diff) | |
| download | balls-50f5164c529d57aeaf5c435b33683afabfc25c40.zip | |
refactor collisions
Diffstat (limited to 'balls.h')
| -rw-r--r-- | balls.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,6 @@ #include <u.h> #include <libc.h> +#include <stdio.h> #include <draw.h> #include <cursor.h> @@ -31,4 +32,6 @@ Point ptaddv(Point p, Vec v); Vec V(double x, double y); Vec Vpt(Point p, Point q); -int iscollision(Point p, Point q);
\ No newline at end of file +int iscollision(Point p, Point q); +void collideball(Ball *b1, const Ball *b2); +void collidewall(Ball *b, Rectangle wall); |