CG-Project2
Loading...
Searching...
No Matches
ParentComponent Class Reference

This Component is used like MultiMesh, but it create a sort of tree structure where each mesh has children. Each child mesh can also have children etc. More...

#include <Component.hpp>

Inheritance diagram for ParentComponent:
Collaboration diagram for ParentComponent:

Public Member Functions

 ParentComponent ()
 Instance basic Component.

Public Attributes

std::vector< unsigned int > children {}
 vector containing children ids.

Detailed Description

This Component is used like MultiMesh, but it create a sort of tree structure where each mesh has children. Each child mesh can also have children etc.

Note
An Entity with MultiMesh component means that each mesh stored in that component follow the anchor transformation. In this component if a children mesh is transformed the parent mesh isn't affected. But if the parent node is transformed all his children are affected.

The documentation for this class was generated from the following file: