very bad collision(work in progress)

This commit is contained in:
swim67667
2026-06-22 01:29:58 -04:00
commit 22377c6f1a
26 changed files with 4453 additions and 0 deletions

26
src/entity.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef ENTITY_H
#define ENTITY_H
#include <stdbool.h>
#include "raylib.h"
typedef struct Entity
{
bool active;
bool isPlayer;
bool affectedByGravity;
float mass;
float size;
Vector2 position;
Vector2 velocity;
Vector2 acceleration;
Vector2 force;
Color color;
} Entity;
#endif