Location, orientation, and scale of an entity.
More...
#include <Components.hpp>
|
glm::vec3 | position = {0.f, 0.f, 0.f} |
| Position of entity.
|
|
glm::qua< float > | rotation = {1.f, 0.f, 0.f, 0.f} |
| Rotation of entity in degrees.
|
|
glm::vec3 | scale = {1.f, 1.f, 1.f} |
| Scale of enetity.
|
|
Location, orientation, and scale of an entity.
◆ Transform() [1/2]
Engine::Transform::Transform |
( |
glm::vec3 |
p, |
|
|
glm::vec3 |
r, |
|
|
glm::vec3 |
s |
|
) |
| |
|
inline |
Creates a new transform
- Parameters
-
p | position vector |
r | rotation vector |
s | scale vector |
◆ Transform() [2/2]
Engine::Transform::Transform |
( |
| ) |
|
|
default |
Default constructor Initializes rotation and position to 0 and scale to 1
The documentation for this struct was generated from the following file: