Select Git revision
reverseProxy.go
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
BoxCollider2D.hpp 701 B
#pragma once
#include "DEngine/Components/Components.hpp"
#include "DEngine/Enum.hpp"
#include "DMath/Vector/Vector.hpp"
#include "DMath/Matrix/Matrix.hpp"
namespace Engine
{
namespace Components
{
class BoxCollider2D : public ComponentBase
{
public:
using ParentType = ComponentBase;
explicit BoxCollider2D(SceneObject& owningObject);
~BoxCollider2D();
Math::Matrix3x3 GetModel2D(Space space) const;
Math::Matrix<3, 2> GetModel2D_Reduced(Space space) const;
Math::Matrix2x2 GetRotationModel2D(Space space) const;
Math::Matrix3x3 GetRotationModel2D_Homo(Space space) const;
Math::Vector2D position{};
float rotation{};
Math::Vector2D size{ 1, 1 };
};
}
}