// // Created by Иван Ильин on 04.11.2021. // #ifndef SHOOTER_HITBOX_H #define SHOOTER_HITBOX_H #include "../Mesh.h" class HitBox final { private: struct Vec3DLess { bool operator()(const Vec3D& lhs, const Vec3D& rhs) const noexcept; }; std::vector _hitBox; public: HitBox() = default; HitBox(const HitBox &hitBox) = default; explicit HitBox(const Mesh &mesh); [[nodiscard]] std::vector::iterator begin() { return _hitBox.begin(); } [[nodiscard]] std::vector::iterator end() { return _hitBox.end(); } HitBox static Box(const Mesh &mesh); }; #endif //SHOOTER_HITBOX_H