A component representing the position, rotation, and scale of an entity.
More...
#include <scene_components.hpp>
|
| bool | operator== (const Placement &other) |
| | Compares this placement object to another for equality.
|
| |
| bool | operator!= (const Placement &other) |
| | An explicit specification for the inequality operator.
|
| |
|
|
glm::vec4 | mPosition {glm::vec3{ 0.f }, 1.f} |
| | This entity's position.
|
| |
| glm::quat | mOrientation { glm::vec3{ 0.f } } |
| | This entity's orientation, as a glm::quat value.
|
| |
|
glm::vec3 | mScale { 1.f, 1.f, 1.f } |
| | Factors along each axis by which geometry should be multiplied and scaled.
|
| |
A component representing the position, rotation, and scale of an entity.
- See also
- ECSWorld::registerComponentTypes()
◆ getComponentTypeName()
| static std::string ToyMaker::Placement::getComponentTypeName |
( |
| ) |
|
|
inlinestatic |
Gets the component type string for this component.
- Returns
- std::string The component type string for this object.
◆ operator!=()
| bool ToyMaker::Placement::operator!= |
( |
const Placement & | other | ) |
|
|
inline |
An explicit specification for the inequality operator.
- Parameters
-
| other | The placement this one is being compared to for inequality. |
- Return values
-
| true | These two placements are unequal. |
| false | These two placements are equal. |
◆ operator==()
| bool ToyMaker::Placement::operator== |
( |
const Placement & | other | ) |
|
|
inline |
Compares this placement object to another for equality.
- Parameters
-
| other | The placement this one is being compared to. |
- Return values
-
| true | These two placement objects are equal; |
| false | These two placement objects are not equal; |
◆ mOrientation
| glm::quat ToyMaker::Placement::mOrientation { glm::vec3{ 0.f } } |
This entity's orientation, as a glm::quat value.
The forward vector for an object is found by applying this quaternion to a vector facing the -Z axis (i.e {0.0, 0.0, -1.0, 0.0}) after having applied rotation transforms of objects higher up in the scene hierarchy.
The documentation for this struct was generated from the following file: