CG-Project2
|
This Component is very similar to TimeAnimation, the only difference is that this "animation" has not an end but it defines a behaviour of a mesh (like an AI). More...
#include <Component.hpp>
Public Member Functions | |
BehaviourComponent () | |
Instances basic Component to query the ECS when it needs to update a mesh position or color or scale etc. |
Public Attributes | |
std::function< void()> | func = nullptr |
function called every frame to update the mesh |
This Component is very similar to TimeAnimation, the only difference is that this "animation" has not an end but it defines a behaviour of a mesh (like an AI).