Cafu Engine
ViewWindow3DT::HitInfoT Struct Reference

This struct describes a hit (an intersection of a map element with a view ray through a given pixel) as returned by the GetElementsAt() method. More...

#include "ChildFrameViewWin3D.hpp"

Public Attributes

MapElementTObject
 Pointer to the intersected map element. More...
 
unsigned long FaceNr
 If Object is a map brush, this is the number of its face that was hit. More...
 
float Depth
 Depth value (distance from ray origin (on near clip plane) along the ray) of the hit object. More...
 
Vector3fT Pos
 The point in the world where the object was hit. More...
 

Detailed Description

This struct describes a hit (an intersection of a map element with a view ray through a given pixel) as returned by the GetElementsAt() method.

Member Data Documentation

float ViewWindow3DT::HitInfoT::Depth

Depth value (distance from ray origin (on near clip plane) along the ray) of the hit object.

unsigned long ViewWindow3DT::HitInfoT::FaceNr

If Object is a map brush, this is the number of its face that was hit.

MapElementT* ViewWindow3DT::HitInfoT::Object

Pointer to the intersected map element.

Vector3fT ViewWindow3DT::HitInfoT::Pos

The point in the world where the object was hit.


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