Improve demos

This commit is contained in:
SirLynix
2022-12-02 23:00:53 +01:00
committed by Jérôme Leclercq
parent 5a57976b4b
commit 06f45db91c
2 changed files with 2 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ int main()
playerRotNode.SetParent(playerNode);
auto& cameraNode = registry.emplace<Nz::NodeComponent>(playerCamera);
cameraNode.SetPosition(Nz::Vector3f::Up() * 2.f + Nz::Vector3f::Backward());
//cameraNode.SetParent(playerRotNode);
auto& cameraComponent = registry.emplace<Nz::CameraComponent>(playerCamera, window.GetRenderTarget());