A class that handles the transform component.
More...
#include <TransformComponent.h>
|
| std::string | id |
| | The ID of the component type. More...
|
| |
A class that handles the transform component.
◆ ~TransformComponent()
| TransformComponent::~TransformComponent |
( |
| ) |
|
|
virtual |
◆ getPos()
| Vec3 TransformComponent::getPos |
( |
| ) |
|
|
inline |
A function to get the position.
- Returns
- The position of the component.
◆ getRotation()
| Vec3 TransformComponent::getRotation |
( |
| ) |
|
|
inline |
A function to get the rotation.
- Returns
- The rotation of the component.
◆ getScale()
| Vec3 TransformComponent::getScale |
( |
| ) |
|
|
inline |
A function to get the scale.
- Returns
- The scale of the component.
◆ getTransformMat4()
| Mat4 TransformComponent::getTransformMat4 |
( |
| ) |
|
A function to get the transform matrix.
- Returns
- The transform matrix.
◆ lookAt()
| void TransformComponent::lookAt |
( |
Vec3 |
worldPosition | ) |
|
A function to look at a specific world position.
- Parameters
-
| worldPosition | The position to look at. |
◆ onAwake()
| void TransformComponent::onAwake |
( |
| ) |
|
|
virtual |
A virtual function for the componets awake.
Reimplemented from Component.
◆ onDestroy()
| void TransformComponent::onDestroy |
( |
| ) |
|
|
virtual |
A virtual function for the componets destroy.
Reimplemented from Component.
◆ rotate()
| void TransformComponent::rotate |
( |
Vec3 |
angles | ) |
|
A function to rotate the component.
- Parameters
-
| angles | The angles of rotation (radians). |
◆ rotateAround()
| void TransformComponent::rotateAround |
( |
Vec3 |
center, |
|
|
Vec3 |
axis, |
|
|
float |
amount |
|
) |
| |
A function to rotate around a specific world point.
- Parameters
-
| center | The position to roate around |
| axis | The axis to roate around. |
| amount | The amount to roate around. |
◆ setPos()
| void TransformComponent::setPos |
( |
Vec3 |
inPos | ) |
|
|
inline |
A function to set the position.
- Parameters
-
| inPos | The position of the component. |
◆ setRotation()
| void TransformComponent::setRotation |
( |
Vec3 |
inRotation | ) |
|
|
inline |
A function to set the rotation.
- Parameters
-
| inRotation | The rotation of the component. |
◆ setScale()
| void TransformComponent::setScale |
( |
Vec3 |
inScaleSize | ) |
|
|
inline |
A function to set the scale.
- Parameters
-
| inScaleSize | The scale of the component. |
◆ translate()
| void TransformComponent::translate |
( |
Vec3 |
translation | ) |
|
A function to translate the component.
- Parameters
-
| translation | The amount to translate by. |
◆ pos
| Vec3 TransformComponent::pos |
|
private |
The vector transform variables.
◆ rotation
| Vec3 TransformComponent::rotation |
|
private |
◆ scaleSize
| Vec3 TransformComponent::scaleSize |
|
private |
The documentation for this class was generated from the following files: