2022-11-29 16:34:42 +01:00
|
|
|
#pragma once
|
2023-12-11 14:45:37 +01:00
|
|
|
#include "Math/AABB.h"
|
2022-11-29 16:34:42 +01:00
|
|
|
#include "ShapeBase.h"
|
|
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
namespace Seele {
|
|
|
|
|
namespace Component {
|
|
|
|
|
enum class ColliderType {
|
2022-11-29 16:34:42 +01:00
|
|
|
STATIC,
|
|
|
|
|
DYNAMIC,
|
|
|
|
|
};
|
2024-06-09 12:20:04 +02:00
|
|
|
struct Collider {
|
2023-01-21 18:43:21 +01:00
|
|
|
ColliderType type = ColliderType::STATIC;
|
2022-11-29 16:34:42 +01:00
|
|
|
AABB boundingbox;
|
|
|
|
|
ShapeBase physicsMesh;
|
|
|
|
|
Collider transform(const Transform& transform) const;
|
|
|
|
|
};
|
|
|
|
|
} // namespace Component
|
|
|
|
|
} // namespace Seele
|