This commit is contained in:
2026-03-25 22:27:17 +01:00
parent 8f2a4e9ecb
commit af37e6242a
3 changed files with 56 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
#include <object/components/boxcollider.hpp>
namespace Game::Object::Components {
BoxCollider::BoxCollider(const BoxCollider& other) : Component(other) {
LOG("Copied BoxCollider Component: " << mName);
}
BoxCollider& BoxCollider::operator=(const BoxCollider& other) {
if (this != &other) {
Component::operator=(other);
}
return *this;
}
BoxCollider::BoxCollider(BoxCollider&& other) noexcept : Component(std::move(other)) {
LOG("Moved BoxCollider Component: " << mName);
}
BoxCollider& BoxCollider::operator=(BoxCollider&& other) noexcept {
if (this != &other) {
Component::operator=(std::move(other));
}
return *this;
}
BoxCollider::~BoxCollider() = default;
void BoxCollider::start(Object::Entity* thisEntity) {
// Initialization code for the box collider can go here
}
void BoxCollider::update(float deltaTime, Object::Entity* thisEntity) {
// Collision detection and response logic can go here
}
}