Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::PickRay Struct Reference

#include <UIHitTestSystem.hpp>

Public Attributes

glm::vec3 origin {0.0f, 0.0f, 0.0f}
glm::vec3 dir {0.0f, 0.0f, -1.0f}

Detailed Description

A pointer, as the ray it is rather than a point on one plane. Orthographically every plane the ray crosses gives the same x/y, so the flat case is this one's degenerate form; under perspective they differ, and a point cannot serve.

Definition at line 59 of file UIHitTestSystem.hpp.

Member Data Documentation

◆ dir

glm::vec3 esengine::ecs::PickRay::dir {0.0f, 0.0f, -1.0f}

Definition at line 61 of file UIHitTestSystem.hpp.

Referenced by esengine::ecs::rayHitsOBB(), and esengine::ecs::rayHitsPlaneZ().

◆ origin

glm::vec3 esengine::ecs::PickRay::origin {0.0f, 0.0f, 0.0f}

Definition at line 60 of file UIHitTestSystem.hpp.

Referenced by esengine::ecs::rayHitsOBB(), and esengine::ecs::rayHitsPlaneZ().


The documentation for this struct was generated from the following file: