Skip to content
Snippets Groups Projects
Select Git revision
  • b2283a97ceca0cb3bda2c025918a5d8f03cbf7df
  • master default protected
2 results

BoxCollider2D.hpp

Blame
  • 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 };
    		};
    	}
    }