MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / SetTransformMatrix

Method SetTransformMatrix

src/Nazara/Utility/Node.cpp:562–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560 }
561
562 void Node::SetTransformMatrix(const Matrix4f& matrix)
563 {
564 SetPosition(matrix.GetTranslation(), CoordSys_Global);
565 SetRotation(matrix.GetRotation(), CoordSys_Global);
566 SetScale(matrix.GetScale(), CoordSys_Global);
567
568 m_transformMatrix = matrix;
569 m_transformMatrixUpdated = true;
570 }
571
572 Vector3f Node::ToGlobalPosition(const Vector3f& localPosition) const
573 {

Callers

nothing calls this directly

Calls 2

GetRotationMethod · 0.45
GetScaleMethod · 0.45

Tested by

no test coverage detected