NAP
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
 Property: 'Properties' Rotation settings. More...
 
bool mEnabled = true
 Property: 'Enabled' If rotation is enabled. More...
 
- 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)
 

Description

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:
[legend]
Collaboration diagram for RotateComponent:
[legend]

Member Function Documentation

◆ getDependentComponents()

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

Uses transform to rotate itself in the world.

Reimplemented from Component.

Member Data Documentation

◆ mEnabled

bool mEnabled = true

Property: 'Enabled' If rotation is enabled.

◆ mProperties

RotateProperties mProperties

Property: 'Properties' Rotation settings.