mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
34 lines
487 B
C++
34 lines
487 B
C++
#pragma once
|
|
|
|
#include <glm/vec3.hpp>
|
|
#include <cstdint>
|
|
|
|
namespace engine {
|
|
|
|
struct AABB {
|
|
glm::vec3 pos1;
|
|
glm::vec3 pos2;
|
|
};
|
|
|
|
class PhysicsSystem;
|
|
|
|
struct ColliderComponent {
|
|
friend PhysicsSystem;
|
|
|
|
ColliderComponent()
|
|
{
|
|
|
|
}
|
|
|
|
bool isStatic;
|
|
AABB aabb;
|
|
|
|
glm::vec3 getLastCollisionNormal() { return {0.0f, 1.0f, 0.0f}; }
|
|
glm::vec3 getLastCollisionPoint() { return {}; }
|
|
bool getIsColliding() { return true; }
|
|
bool getJustUncollided() { return false; }
|
|
|
|
};
|
|
|
|
}
|