17 lines
524 B
C
17 lines
524 B
C
#pragma once
|
|
|
|
#include "entt.hpp"
|
|
|
|
|
|
// Attach child to parent (updates linked list)
|
|
void AttachChild(entt::registry& registry, entt::entity child, entt::entity parent);
|
|
|
|
// Detach child from its parent (if any)
|
|
void DetachFromParent(entt::registry& registry, entt::entity child);
|
|
|
|
// Detach all children from a parent (orphans them)
|
|
void DetachChildren(entt::registry& registry, entt::entity parent);
|
|
|
|
// Update WorldTransform for all entities using hierarchy traversal
|
|
void UpdateWorldTransforms(entt::registry& registry);
|