TileMap Component

This commit is contained in:
Isuru Samarathunga
2025-10-11 23:54:31 +05:30
parent e0411333fb
commit 09131d7fab
11 changed files with 218 additions and 15 deletions

View File

@ -15,6 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <IAEngine/Components/CameraComponent.hpp>
#include <IAEngine/Nodes/Node2D.hpp>
#include <Renderer/Renderer.hpp>
@ -45,6 +46,8 @@ namespace ia::iae
VOID CameraComponent::Update()
{
const auto pos = m_node->GetPosition();
m_viewMatrix = glm::lookAtLH(glm::vec3{pos, -2.0f}, {pos, 0.0f}, {0.0f, 1.0f, 0.0f});
}
VOID CameraComponent::FixedUpdate()