first commit

This commit is contained in:
uan
2025-12-23 13:29:26 +01:00
commit 63bb2eac8c
3 changed files with 126 additions and 0 deletions

22
objects.h Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include <raylib.h>
#include <stdlib.h>
typedef struct {
Vector3 pos;
Vector3 vel;
float r;
Color color;
float restitution;
} object;
object *newobj(Vector3 pos, float r, Color c, float rest)
{
object *obj = (object*)malloc(sizeof(object));
obj->r = r;
obj->pos = pos;
obj->color = c;
obj->vel = (Vector3){0, 0, 0};
obj->restitution = rest;
return obj;
}