|
The Joe Engine
Joe's engine programming playground
|
The Rotator Component class. More...
#include <RotatorComponent.h>
Public Member Functions | |
| RotatorComponent () | |
| Constructor. More... | |
| ~RotatorComponent ()=default | |
| Destructor (default). More... | |
| void | Update (JoeEngine::JEEngineInstance *engineInstance) |
| Update this rotator component. More... | |
Public Attributes | |
| int | m_entityId |
| Entity Id. More... | |
| glm::vec3 | m_axis |
| Axis of rotation. More... | |
The Rotator Component class.
A custom-made component type. Note that it exists outside of the usual JoeEngine namespace.\ When attached to an entity, the entity should rotate about a specified axis.
|
inline |
Constructor.
Constructs a rotator component with default values.
|
default |
Destructor (default).
| void RotatorComponent::Update | ( | JoeEngine::JEEngineInstance * | engineInstance | ) |
Update this rotator component.
A user-defined function that should invoke some custom functionality. In this case, it should transform the attached entity (stored in m_entityId) by rotating it about m_axis.
| engineInstance | the engine instance (needed for general API calls). |
| glm::vec3 RotatorComponent::m_axis |
Axis of rotation.
Indicates which axis to rotate about.
| int RotatorComponent::m_entityId |
Entity Id.
Indicates which entity this component is attached to.