|
|
| TransformComponent (TransformComponent *parent_=nullptr, glm::vec3 position_={}, glm::quat rotation_=glm::identity< glm::quat >(), glm::vec3 scale_=glm::vec3{1}) |
| |
|
glm::mat4 | getMatrix () |
| |
|
const glm::mat4 & | getMatrixLocal () |
| |
|
void | setMatrixLocal (const glm::mat4 &transform_) |
| |
|
glm::vec3 | getPosition () const |
| |
|
void | setPosition (glm::vec3 newGlobalPosition) |
| |
|
glm::vec3 | getPositionLocal () const |
| |
|
void | setPositionLocal (glm::vec3 newLocalPosition) |
| |
|
glm::quat | getRotation () const |
| |
|
glm::vec3 | getRotationEuler () const |
| |
|
float | getPitch () const |
| | Returns an angle in radians.
|
| |
|
float | getYaw () const |
| | Returns an angle in radians.
|
| |
|
float | getRoll () const |
| | Returns an angle in radians.
|
| |
|
void | setRotation (glm::quat newRotation) |
| |
|
void | setRotation (glm::vec3 newRotation) |
| |
|
void | setPitch (float pitch) |
| | Takes an angle in radians.
|
| |
|
void | setYaw (float yaw) |
| | Takes an angle in radians.
|
| |
|
void | setRoll (float roll) |
| | Takes an angle in radians.
|
| |
|
glm::vec3 | getScale () const |
| |
|
void | setScale (glm::vec3 newScale) |
| |
|
void | translate (glm::vec3 translateByAmount) |
| |
|
void | translateWithRotation (glm::vec3 translateByAmount) |
| |
|
void | rotate (glm::quat rotateByAmount) |
| |
|
void | rotate (glm::vec3 rotateByAmount) |
| |
|
void | pitch (float pitch) |
| |
|
void | yaw (float yaw) |
| |
|
void | roll (float roll) |
| |
|
glm::vec3 | getFrontVector () const |
| |
|
glm::vec3 | getUpVector () const |
| |
|
glm::vec3 | getRightVector () const |
| |
|
bool | operator== (const TransformComponent &other) const |
| |
|
|
static glm::mat4 | createTransformMatrix (const glm::mat4 &start, glm::vec3 position, glm::quat rotation, glm::vec3 scale) |
| |
|
|
static constexpr auto | in_place_delete = true |
| |
|
|
glm::mat4 | transform |
| |
|
glm::quat | rotationQuat |
| |
|
glm::vec3 | rotationEuler |
| |
|
glm::vec3 | position |
| |
|
glm::vec3 | scale |
| |
|
TransformComponent * | parent |
| |
|
bool | useEulerAngles |
| |
|
bool | dirty |
| |
Definition at line 12 of file TransformComponent.h.
The documentation for this struct was generated from the following file: