Partial Jolt implementation and some model loader fixes.

This commit is contained in:
Antoine Pilote
2023-03-01 22:05:23 -05:00
parent 972caf4163
commit f8643f1dcf
11 changed files with 282 additions and 87 deletions

View File

@@ -136,6 +136,7 @@ namespace Nuake {
auto [transform, camera, parent] = view.get<TransformComponent, CameraComponent, ParentComponent>(e);
cam = camera.CameraInstance;
cam->Translation = transform.GetGlobalPosition();
cam->SetDirection(Vector3(Vector4(0, 0, 1, 0) * transform.GetGlobalTransform()));
break;
}
}