Add second constructor to node

This commit is contained in:
Georg Hagen
2024-07-20 19:12:34 +02:00
parent ab38e03ba1
commit 22d6ea9d2e
2 changed files with 9 additions and 1 deletions

View File

@@ -14,6 +14,10 @@ namespace OpenVulkano::Scene
Node::Node()
: localMat(1), worldMat(1), enabled(true)
{}
Node::Node(const Math::Matrix4f& pose)
: localMat(pose), worldMat(pose), enabled(true)
{}
Node::~Node() noexcept
{