Public Member Functions | Public Attributes | List of all members
RotateComponent Class Reference

#include <rotatecomponent.h>

Public Member Functions

void getDependentComponents (std::vector< rtti::TypeInfo > &components) const override
- Public Member Functions inherited from Component
virtual const rtti::TypeInfo getInstanceType () const =0
- Public Member Functions inherited from Resource
 Resource ()
- Public Member Functions inherited from Object
 Object ()
virtual ~Object ()
virtual bool init (utility::ErrorState &errorState)
virtual void onDestroy ()
 Object (Object &)=delete
Objectoperator= (const Object &)=delete
 Object (Object &&)=delete
Objectoperator= (Object &&)=delete

Public Attributes

RotateProperties mProperties
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)


Resource part of the rotate component. Automatically rotates the entity along a certain axis at a certain speed. The initial rotation value after initialization is used to rotate along the specified axis. This component updates (overrides) the rotate value of the transform component. Entities that use this component must have a transform.

Inheritance diagram for RotateComponent:
Collaboration diagram for RotateComponent:

Member Function Documentation

◆ getDependentComponents()

void getDependentComponents ( std::vector< rtti::TypeInfo > &  components) const

Uses transform to rotate itself in the world.

Reimplemented from Component.

Member Data Documentation

◆ mProperties

RotateProperties mProperties