11 #include <utility/dllexport.h>
14 #include "transformcomponent.h"
16 #include <glm/glm.hpp>
25 glm::vec3 mAxis = {0.0f, 1.0f, 0.0f};
85 virtual void update(
double deltaTime)
override;
106 void setSpeed(
float speed) { mProperties.mSpeed = speed; }
111 float getSpeed()
const {
return mProperties.mSpeed; }
117 void setAxis(
const glm::vec3& axis) { mProperties.mAxis = axis; }
122 glm::vec3
getAxis()
const {
return mProperties.mAxis; }
132 double mElapsedTime = 0.0;
135 bool mEnabled =
true;
138 glm::quat mInitialRotate = glm::quat();
void setAxis(const glm::vec3 &axis)
Definition: rotatecomponent.h:117
void setSpeed(float speed)
Definition: rotatecomponent.h:106
float getSpeed() const
Definition: rotatecomponent.h:111
glm::vec3 getAxis() const
Definition: rotatecomponent.h:122
void enable(bool enable)
Definition: rotatecomponent.h:95
RotateComponentInstance(EntityInstance &entity, Component &resource)
Definition: rotatecomponent.h:72
Definition: errorstate.h:19
Definition: rotatecomponent.h:68
RotateProperties mProperties
Definition: rotatecomponent.h:125
RotateProperties mProperties
Property: 'Properties' Rotation settings.
Definition: rotatecomponent.h:55
Definition: component.h:43
Definition: component.h:151
bool isEnabled() const
Definition: rotatecomponent.h:100
void getDependentComponents(std::vector< rtti::TypeInfo > &components) const override
Definition: rotatecomponent.h:49
Definition: rotatecomponent.h:41
Definition: templateapp.h:17
Definition: rotatecomponent.h:23