Add Collide System

- Fix AssetRef unload leak
This commit is contained in:
Thraix
2023-06-05 21:52:32 +02:00
parent 3ec9bcd152
commit 76bda0ace4
16 changed files with 280 additions and 137 deletions
@@ -56,6 +56,7 @@ namespace Copium
struct PlayerC
{
Entity camera;
Timer jumpTimer;
};
struct HealthC
@@ -66,4 +67,20 @@ namespace Copium
Entity background;
Entity foreground;
};
struct StaticColliderC
{
bool resolveCollision;
};
struct DynamicColliderC
{
bool resolveCollision;
glm::vec2 oldPosition;
};
struct PickupC
{
};
}