Struct Engine::Parent¶
Links an entity to its parent in a transform hierarchy. More...
#include <Parent.hpp>
Public Attributes¶
| Type | Name |
|---|---|
| Entity | parent = 0Entity id of the parent in the sameRegistry . |
Public Static Functions¶
| Type | Name |
|---|---|
| Parent | Create (Entity parentEntity=0) Creates a Parent component. |
Detailed Description¶
Used for grouped destroy (Registry destroys the full subtree) and, with Position::relative, for following the parent's motion via HierarchySystem. Child world position stays in Position; this component only stores the parent link.
Public Attributes Documentation¶
variable parent¶
Entity id of the parent in the sameRegistry .
Public Static Functions Documentation¶
function Create¶
Creates a Parent component.
Parameters:
parentEntityThe parent entity id.
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Components/Parent.hpp