Cogs.Core
|
#include <RayPick.h>
Public Member Functions | |
RayPickHit (const ComponentModel::Component &comp, bool returnChildEntity, const glm::vec3 &pos, float dist, const glm::vec2 &texCoords=NoPickTextureCoords) | |
Constructor used by the picking code in the systems. | |
bool | operator< (const RayPickHit &rhs) const |
Public Attributes | |
EntityId | entity = NoEntity |
The EntityId picked. | |
EntityId | root = NoEntity |
glm::vec3 | position |
The picked position. | |
glm::vec2 | textureCoords = NoPickTextureCoords |
float | distance = std::numeric_limits<float>::max() |
Cogs::Core::RayPicking::RayPickHit::RayPickHit | ( | const ComponentModel::Component & | comp, |
bool | returnChildEntity, | ||
const glm::vec3 & | pos, | ||
float | dist, | ||
const glm::vec2 & | texCoords = NoPickTextureCoords |
||
) |
Constructor used by the picking code in the systems.
Definition at line 171 of file RayPick.cpp.
References entity, Cogs::ComponentModel::Component::getContainer(), Cogs::ComponentModel::Entity::getId(), and root.
|
inline |
float Cogs::Core::RayPicking::RayPickHit::distance = std::numeric_limits<float>::max() |
EntityId Cogs::Core::RayPicking::RayPickHit::entity = NoEntity |
glm::vec3 Cogs::Core::RayPicking::RayPickHit::position |
EntityId Cogs::Core::RayPicking::RayPickHit::root = NoEntity |
Gets the Root EntityId picked if picking sub-entities E.g if PickingFlags::ReturnChildEntity set.
Definition at line 42 of file RayPick.h.
Referenced by RayPickHit().
glm::vec2 Cogs::Core::RayPicking::RayPickHit::textureCoords = NoPickTextureCoords |