very bad collision(work in progress)
This commit is contained in:
26
src/entity.h
Normal file
26
src/entity.h
Normal 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
|
||||
Reference in New Issue
Block a user