igor::iVelocityComponent Class Reference

#include <iVelocityComponent.h>

Inherits igor::iEntityComponent.

Public Member Functions

 iVelocityComponent (const iaVector3d &velocity=iaVector3d(), const iaVector3d &angularVelocity=iaVector3d())
 
IGOR_INLINE const iaVector3dgetVelocity () const
 
void setVelocity (const iaVector3d &velocity)
 
IGOR_INLINE const iaVector3dgetAngularVelocity () const
 
void setAngularVelocity (const iaVector3d &angularVelocity)
 
std::vector< iaStringgetInfo () const override
 
- Public Member Functions inherited from igor::iEntityComponent
 iEntityComponent ()
 
virtual ~iEntityComponent ()=default
 
const iEntityComponentIDgetID () const
 
iEntityComponentState getState () const
 
virtual std::vector< iaStringgetInfo () const
 
IGOR_INLINE void setDirty ()
 
uint16 getVersion () const
 

Static Public Member Functions

static iEntityComponentcreateInstance ()
 
static const iaStringgetTypeName ()
 

Additional Inherited Members

- Protected Member Functions inherited from igor::iEntityComponent
virtual bool onLoad (iEntityPtr entity, bool &asyncLoad)
 
virtual void onActivate (iEntityPtr entity)
 
virtual void onDeactivate (iEntityPtr entity)
 
virtual void onUnLoad (iEntityPtr entity)
 
virtual iEntityComponentPtr getCopy ()=0
 
iEntityPtr getEntity () const
 

Detailed Description

velocity component

Constructor & Destructor Documentation

◆ iVelocityComponent()

igor::iVelocityComponent::iVelocityComponent ( const iaVector3d velocity = iaVector3d(),
const iaVector3d angularVelocity = iaVector3d() 
)

ctor

Parameters
velocitythe velocity to set
angularVelocitythe angular velocity to set

Member Function Documentation

◆ createInstance()

iEntityComponent * igor::iVelocityComponent::createInstance ( )
static

creates instance of this component type

◆ getAngularVelocity()

IGOR_INLINE const iaVector3d & igor::iVelocityComponent::getAngularVelocity ( ) const
inline
Returns
angular velocity

◆ getInfo()

std::vector< iaString > igor::iVelocityComponent::getInfo ( ) const
overridevirtual
Returns
a set of info strings

Reimplemented from igor::iEntityComponent.

◆ getTypeName()

const iaString & igor::iVelocityComponent::getTypeName ( )
static
Returns
type name of component

◆ getVelocity()

IGOR_INLINE const iaVector3d & igor::iVelocityComponent::getVelocity ( ) const
inline
Returns
velocity

◆ setAngularVelocity()

void igor::iVelocityComponent::setAngularVelocity ( const iaVector3d angularVelocity)

sets angular velocity

Parameters
angularVelocitythe angular velocity to set

◆ setVelocity()

void igor::iVelocityComponent::setVelocity ( const iaVector3d velocity)

sets velocity

Parameters
velocitythe velocity to set

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