From 833ac5e6f081a6cc4b163e0299604de617815bab Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:01:59 +0530 Subject: [PATCH] set editor camera position through new component --- include/NazaraEditor/Core/Components/NameComponent.hpp | 2 +- src/NazaraEditor/Editor/Application.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/NazaraEditor/Core/Components/NameComponent.hpp b/include/NazaraEditor/Core/Components/NameComponent.hpp index 22934ed..b272513 100644 --- a/include/NazaraEditor/Core/Components/NameComponent.hpp +++ b/include/NazaraEditor/Core/Components/NameComponent.hpp @@ -1,6 +1,6 @@ #pragma once -#include +#include #include diff --git a/src/NazaraEditor/Editor/Application.cpp b/src/NazaraEditor/Editor/Application.cpp index 4b982f7..cb03542 100644 --- a/src/NazaraEditor/Editor/Application.cpp +++ b/src/NazaraEditor/Editor/Application.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include @@ -58,8 +59,8 @@ namespace NzEditor graphicsComponent.AttachRenderable(boxModel); } - GetMainCamera().get().SetPosition(-5, 0, 0); - GetMainCamera().get().SetRotation(Nz::Quaternionf::LookAt(Nz::Vector3f(1, 0, 0), Nz::Vector3f::Up())); + GetMainCamera().get().SetPosition(Nz::Vector3f(- 5, 0, 0)); + GetMainCamera().get().SetRotation(Nz::Quaternionf::LookAt(Nz::Vector3f(1, 0, 0), Nz::Vector3f::Up())); return true; }