MCPcopy Create free account
hub / github.com/defold/defold / UpdateWorldTransforms

Function UpdateWorldTransforms

engine/modelc/src/modelimporter_gltf.cpp:525–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525static void UpdateWorldTransforms(Node* node)
526{
527 if (node->m_Parent)
528 TransformMul(node->m_Parent->m_World, node->m_Local, node->m_World);
529 else
530 node->m_World = node->m_Local;
531
532 for (uint32_t c = 0; c < node->m_Children.Size(); ++c)
533 {
534 UpdateWorldTransforms(node->m_Children[c]);
535 }
536}
537
538template <typename T>
539static void InitSize(dmArray<T>& arr, uint32_t cap, uint32_t size)

Callers 1

LoadNodesFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected