TileMap Component
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user