mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Removed euler, only quaternion and dirty flag
This commit is contained in:
@@ -122,8 +122,8 @@ namespace Nuake {
|
||||
|
||||
if (ImGuizmo::IsUsing())
|
||||
{
|
||||
tc.LocalTransform = transform;
|
||||
tc.GlobalTransform = transform;
|
||||
tc.SetLocalTransform(transform);
|
||||
tc.SetGlobalTransform(transform);
|
||||
|
||||
//Entity currentParent = Selection.Entity;
|
||||
//if (parent.HasParent)
|
||||
@@ -233,7 +233,7 @@ namespace Nuake {
|
||||
if (ImGui::Selectable("Focus camera"))
|
||||
{
|
||||
Ref<EditorCamera> editorCam = Engine::GetCurrentScene()->m_EditorCamera;
|
||||
editorCam->Translation = entity.GetComponent<TransformComponent>().Translation;
|
||||
editorCam->Translation = entity.GetComponent<TransformComponent>().GetGlobalPosition();
|
||||
Vector3 camDirection = entity.GetComponent<CameraComponent>().CameraInstance->GetDirection();
|
||||
editorCam->SetDirection(camDirection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user