diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ce6573..72ca0fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,10 +13,7 @@ option(OMATH_BUILD_AS_SHARED_LIBRARY "Build Omath as .so or .dll" OFF) if (OMATH_BUILD_AS_SHARED_LIBRARY) add_library(omath SHARED source/Vector3.cpp) else() - add_library(omath STATIC source/Vector3.cpp - include/omath/collision/ICollidable.h - include/omath/collision/Cube.h - source/collision/Cube.cpp) + add_library(omath STATIC source/Vector3.cpp) endif() add_subdirectory(source) diff --git a/include/omath/collision/Cube.h b/include/omath/collision/Cube.h deleted file mode 100644 index 4c43796..0000000 --- a/include/omath/collision/Cube.h +++ /dev/null @@ -1,22 +0,0 @@ -// -// Created by vlad on 11/15/2024. -// -#pragma once -#include "ICollidable.h" - -namespace omath::collision -{ - class Cube final : public ICollidable - { - public: - - [[nodiscard]] - bool IsCollideWith(const std::shared_ptr& other) override; - - private: - [[nodiscard]] - bool IsCollideWithCube(const Cube& other); - bool IsCollideWithCapsule(const Cube& other); - - }; -} \ No newline at end of file diff --git a/include/omath/collision/ICollidable.h b/include/omath/collision/ICollidable.h deleted file mode 100644 index 6d89464..0000000 --- a/include/omath/collision/ICollidable.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// Created by vlad on 11/15/2024. -// -#pragma once -#include "ICollidable.h" -#include - - - -namespace omath::collision -{ - class ICollidable - { - public: - virtual ~ICollidable() = default; - - [[nodiscard]] - virtual bool IsCollideWith(const std::shared_ptr& other) = 0; - }; -} diff --git a/source/collision/CMakeLists.txt b/source/collision/CMakeLists.txt index c82e0fb..22a2abc 100644 --- a/source/collision/CMakeLists.txt +++ b/source/collision/CMakeLists.txt @@ -1,4 +1,3 @@ target_sources(omath PRIVATE LineTracer.cpp - Cube.cpp ) diff --git a/source/collision/Cube.cpp b/source/collision/Cube.cpp deleted file mode 100644 index e9dcb61..0000000 --- a/source/collision/Cube.cpp +++ /dev/null @@ -1,13 +0,0 @@ -// -// Created by vlad on 11/15/2024. -// -#include "omath/collision/Cube.h" - - -namespace omath::collision -{ - bool Cube::IsCollideWith(const std::shared_ptr& other) - { - - } -}