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

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>

Inheritance diagram for BehaviourComponent:
Collaboration diagram for BehaviourComponent:

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

Detailed Description

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).


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