mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-17 02:43:27 +00:00
22 lines
421 B
C++
22 lines
421 B
C++
//
|
|
// 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<ICollidable>& other) override;
|
|
|
|
private:
|
|
[[nodiscard]]
|
|
bool IsCollideWithCube(const Cube& other);
|
|
bool IsCollideWithCapsule(const Cube& other);
|
|
|
|
};
|
|
} |