Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CTransformEuler Class Reference

This is object class for classes that describe a GameObject's Transform. More...

#include <Transform/CTransformEuler.h>

Inheritance diagram for Skylicht::CTransformEuler:
Skylicht::CTransform Skylicht::CComponentSystem Skylicht::IActivatorObject Skylicht::CTransformMatrix

Public Member Functions

virtual void reset ()
virtual void initComponent ()
virtual void updateComponent ()
virtual core::vector3df getRelativePosition ()
const core::vector3df & getPosition ()
void setPosition (const core::vector3df &pos)
const core::vector3df & getRotation ()
const core::vector3df & getScale ()
void setScale (const core::vector3df &scale)
void setRotation (const core::vector3df &eulerDeg)
void setRotation (const core::quaternion &q)
float getYaw ()
void setYaw (float deg)
float getPitch ()
void setPitch (float deg)
float getRoll ()
void setRoll (float deg)
void setOrientation (const core::vector3df &front, const core::vector3df &up)
void lookAt (const core::vector3df &position)
void getRotation (core::quaternion &q)
core::quaternion getRotationQuaternion ()
void getFront (core::vector3df &front)
core::vector3df getFront ()
void getUp (core::vector3df &up)
core::vector3df getUp ()
void getRight (core::vector3df &right)
core::vector3df getRight ()
virtual void setRelativeTransform (const core::matrix4 &mat)
virtual const core::matrix4 & getRelativeTransform ()
virtual void getRelativeTransform (core::matrix4 &matrix)
virtual CObjectSerializablecreateSerializable ()
virtual void loadSerializable (CObjectSerializable *object)
Public Member Functions inherited from Skylicht::CTransform
void attachTransform (CEntity *entity)
core::vector3df getWorldPosition ()
void setChanged (bool b)
bool hasChanged ()
bool isAttached ()
bool isWorldTransform ()
void setIsWorldTransform (bool b)
CTransform * getParent ()
CGameObject * getParentObject ()
CEntitygetParentEntity ()
core::matrix4 calcWorldTransform ()
void setWorldMatrix (const core::matrix4 &world)
Public Member Functions inherited from Skylicht::CComponentSystem
const char * getName ()
virtual void startComponent ()
virtual void endUpdate ()
virtual void onEnable (bool b)
virtual void onUpdateCullingLayer (u32 mask)
void setEnable (bool b)
bool isEnable ()
CGameObject * getGameObject ()
void setEnableSerializable (bool b)
bool isSerializable ()
void addLinkComponent (CComponentSystem *comp)
void removeAllLink ()
Public Member Functions inherited from Skylicht::IActivatorObject
virtual ~IActivatorObject ()
 Virtual destructor for polymorphic activator objects.

Protected Attributes

core::vector3df m_position
core::vector3df m_rotation
core::vector3df m_scale
core::matrix4 m_transform
bool m_matrixChanged
Protected Attributes inherited from Skylicht::CTransform
bool m_hasChanged
bool m_attached
bool m_isWorldTransform
Protected Attributes inherited from Skylicht::CComponentSystem
CGameObject * m_gameObject
bool m_enable
bool m_serializable
std::vector< CComponentSystem * > m_linkComponent

Additional Inherited Members

Static Public Member Functions inherited from Skylicht::CComponentSystem
static int useComponent (CComponentSystem *used)
Protected Member Functions inherited from Skylicht::CComponentSystem
void setOwner (CGameObject *obj)

Detailed Description

This is object class for classes that describe a GameObject's Transform.

The CTransformEuler class is created by default along with the CGameObject, so you just need to call the getTransformEuler() function to access it.

CGameObject* lightObj = zone->createEmptyObject();
lightObj->setName(L"Direction Light");
CTransformEuler* lightTransform = lightObj->getTransformEuler();
lightTransform->setPosition(core::vector3df(2.0f, 2.0f, 2.0f));
lightTransform->setRotation(core::vector3df(90.0f, 0.0f, 0.0f));
This object class stores information for a GameObject.
Definition CGameObject.h:52

Member Function Documentation

◆ createSerializable()

virtual CObjectSerializable * Skylicht::CTransformEuler::createSerializable ( )
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ getRelativePosition()

virtual core::vector3df Skylicht::CTransformEuler::getRelativePosition ( )
inlinevirtual

Implements Skylicht::CTransform.

◆ getRelativeTransform() [1/2]

virtual const core::matrix4 & Skylicht::CTransformEuler::getRelativeTransform ( )
virtual

Implements Skylicht::CTransform.

◆ getRelativeTransform() [2/2]

virtual void Skylicht::CTransformEuler::getRelativeTransform ( core::matrix4 & matrix)
virtual

Implements Skylicht::CTransform.

◆ initComponent()

virtual void Skylicht::CTransformEuler::initComponent ( )
virtual

Reimplemented from Skylicht::CTransform.

◆ loadSerializable()

virtual void Skylicht::CTransformEuler::loadSerializable ( CObjectSerializable * object)
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ reset()

virtual void Skylicht::CTransformEuler::reset ( )
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ setRelativeTransform()

virtual void Skylicht::CTransformEuler::setRelativeTransform ( const core::matrix4 & mat)
virtual

Implements Skylicht::CTransform.

◆ updateComponent()

virtual void Skylicht::CTransformEuler::updateComponent ( )
virtual

Reimplemented from Skylicht::CTransform.


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