|
| | TransformComponent () noexcept |
| |
| | TransformComponent (bool isStatic) noexcept |
| |
| | TransformComponent (glm::vec3 position) noexcept |
| |
| | TransformComponent (glm::vec3 position, bool isStatic) noexcept |
| |
| | TransformComponent (glm::vec3 position, glm::vec3 rotation) noexcept |
| |
| | TransformComponent (glm::vec3 position, glm::vec3 rotation, bool isStatic) noexcept |
| |
| | TransformComponent (glm::vec3 position, glm::vec3 rotation, glm::vec3 scale) noexcept |
| |
| | TransformComponent (glm::vec3 position, glm::vec3 rotation, glm::vec3 scale, bool isStatic) noexcept |
| |
| void | SetPosition (glm::vec3 position) noexcept |
| |
| void | SetPosition (float x, float y, float z) noexcept |
| |
| glm::vec3 | GetPosition () noexcept |
| |
| void | SetRotation (glm::vec3 rotation) noexcept |
| |
| void | SetRotation (float x, float y, float z) noexcept |
| |
| glm::vec3 | GetRotation () noexcept |
| |
| void | SetScale (glm::vec3 scale) noexcept |
| |
| void | SetScale (float x, float y, float z) noexcept |
| |
| glm::vec3 | GetScale () noexcept |
| |
| void | SetModelMatrix (glm::mat4x4 modelMatrix) noexcept |
| |
| void | SetModelMatrix (float modelMatrix[16]) noexcept |
| |
| void | SetModelMatrix (glm::vec4 modelMatrix[4]) noexcept |
| |
| glm::mat4x4 | GetModelMatrix () noexcept |
| |
| void | SetIsStatic (bool isStatic) noexcept |
| |
| bool | GetIsStatic () noexcept |
| |
| void | Translate (glm::vec3 positionToAdd) noexcept |
| |
| void | Translate (float x) noexcept |
| |
| void | Translate (float x, float y) noexcept |
| |
| void | Translate (float x, float y, float z) noexcept |
| |
| void | AddRotate (glm::vec3 rotationToAdd) noexcept |
| |
| void | AddRotate (float x) noexcept |
| |
| void | AddRotate (float x, float y) noexcept |
| |
| void | AddRotate (float x, float y, float z) noexcept |
| |
| void | AddScale (glm::vec3 scaleToAdd) noexcept |
| |
| void | AddScale (float x) noexcept |
| |
| void | AddScale (float x, float y) noexcept |
| |
| void | AddScale (float x, float y, float z) noexcept |
| |
| glm::vec3 | GetRight () noexcept |
| |
| glm::vec3 | GetUp () noexcept |
| |
| glm::vec3 | GetForward () noexcept |
| |
| void | LookAt (TransformComponent target) noexcept |
| |
| void | LookAt (glm::vec3 targetPosition) noexcept |
| |
| void | RotateAround (float angle, glm::vec3 axis) noexcept |
| |
| void | Update () override |
| | The update method of this component. NOTE: This method will not be called in case the entity is disabled. More...
|
| |
| void | UpdateModelMatrix () noexcept |
| |
| bool | operator!= (TransformComponent &other) |
| |
| bool | operator== (TransformComponent &other) |
| |
| virtual | ~Component ()=default |
| |
| eastl::weak_ptr< Entity > | GetOwner () const |
| | This method allows you to get the entity holding this component. More...
|
| |
|
| bool | isEnabled |
| |
| | Component () |
| |
| virtual void | InitializeComponent () |
| | This method is used to initialize your component in. This method is called after the setting of the owner. More...
|
| |
| virtual void | OnComponentAdded (eastl::weak_ptr< Component > addedComponent) |
| | This method will be called whenever a component has been added to the entity. More...
|
| |
| virtual void | OnComponentRemoved (eastl::weak_ptr< Component > removedComponent) |
| | This method will be called whenever a component has been removed from the entity. More...
|
| |
| template<typename ComponentType > |
| eastl::weak_ptr< ComponentType > | GetComponent () |
| | This method allows you to get the first component of the given type. More...
|
| |
| template<typename ComponentType > |
| eastl::vector< eastl::weak_ptr< ComponentType > > | GetComponents () |
| | This method allows you to get all of the components of the given type. More...
|
| |
| eastl::vector< eastl::shared_ptr< Component > > | GetAllComponents () const |
| | Returns all the components of this entity. More...
|
| |
| template<class ComponentType , class... Args> |
| eastl::weak_ptr< ComponentType > | AddComponent (Args &&...args) |
| | Allows you to create a component of the given type. More...
|
| |
| template<class ComponentType , class... Args> |
| eastl::vector< eastl::weak_ptr< ComponentType > > | AddComponents (size_t count, Args &&...args) |
| | Allows you to create X amount of components of the given type. More...
|
| |
| template<typename ComponentType > |
| void | RemoveComponent (size_t amountToRemove=1) const |
| | Allows X amount of components of the given type. More...
|
| |
| template<typename ComponentType > |
| void | RemoveAllComponents () const |
| | Deletes all the components of the given type. More...
|
| |
| template<typename archive > |
| void | SaveBaseComponent (archive ar) |
| | Saves the data of this component to a archive (all derived classes have their own version, but if needed they can call this one as a failsafe/default version) More...
|
| |
| template<typename archive > |
| void | LoadBaseComponent (archive ar) |
| | loads the data from the archive to this component (all derived classes have their own version, but if needed they can call this one as a failsafe/default version) More...
|
| |
| virtual void | OnBeginContact (eastl::weak_ptr< Entity > entity) |
| |
| virtual void | OnEndContact (eastl::weak_ptr< Entity > entity) |
| |
| eastl::weak_ptr< Component > | GetPointerRefence () const |
| | This method allows you to get a direct refence to the weak pointer of this component. More...
|
| |
| template<typename ComponentType > |
| eastl::weak_ptr< ComponentType > | GetPointerRefence () |
| | This method allows you to get a direct refence to the weak pointer of this component. More...
|
| |
Definition at line 8 of file TransformComponent.hpp.