| 523 | } |
| 524 | |
| 525 | static 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 | |
| 538 | template <typename T> |
| 539 | static void InitSize(dmArray<T>& arr, uint32_t cap, uint32_t size) |