font-update

This commit is contained in:
a.pilote
2021-08-23 06:27:28 -04:00
parent 69fd08d941
commit eb69e6db0f
4 changed files with 11 additions and 8 deletions

View File

@@ -40,9 +40,7 @@ namespace Nuake {
for (auto e : camView)
{
auto [transform, camera] = camView.get<TransformComponent, CameraComponent>(e);
//
Matrix4 cameraTransform = camera.CameraInstance->GetTransformRotation();
}
auto transformView = m_Scene->m_Registry.view<ParentComponent, TransformComponent>();
@@ -63,6 +61,8 @@ namespace Nuake {
globalPosition += transformComponent.Translation;
globalRotation += transformComponent.Rotation;
globalScale *= transformComponent.Scale;
parentComponent = parentComponent.Parent.GetComponent<ParentComponent>();
}
transform.GlobalTranslation = globalPosition + transform.Translation;