Cafu Engine
AnimPoseT::TraceResultT Struct Reference

This class describes the result of tracing a ray or a bounding box against the model. More...

#include "AnimPose.hpp"

Public Member Functions

 TraceResultT (float Fraction_=0.0f)
 The constructor. More...
 

Public Attributes

float Fraction
 The scalar along RayDir at which the hit occurred (RayOrigin + RayDir*Fraction). More...
 
Vector3fT Normal
 This is the normal vector of the hit surface. More...
 
const MaterialTMaterial
 The material at the point of impact. Can be NULL, e.g. when an edge (i.e. a bevel plane) was hit or the material is not available. More...
 
unsigned int MeshNr
 The number of the hit mesh. Can be -1 (that is, larger then the number of meshes in the model) if the hit mesh cannot be determined. More...
 
unsigned int TriNr
 The number of the hit triangle in the hit mesh. Can be -1 (that is, larger then the number of triangles in the mesh) if the hit triangle cannot be determined. More...
 

Detailed Description

This class describes the result of tracing a ray or a bounding box against the model.

Constructor & Destructor Documentation

AnimPoseT::TraceResultT::TraceResultT ( float  Fraction_ = 0.0f)
inline

The constructor.

Member Data Documentation

float AnimPoseT::TraceResultT::Fraction

The scalar along RayDir at which the hit occurred (RayOrigin + RayDir*Fraction).

const MaterialT* AnimPoseT::TraceResultT::Material

The material at the point of impact. Can be NULL, e.g. when an edge (i.e. a bevel plane) was hit or the material is not available.

unsigned int AnimPoseT::TraceResultT::MeshNr

The number of the hit mesh. Can be -1 (that is, larger then the number of meshes in the model) if the hit mesh cannot be determined.

Vector3fT AnimPoseT::TraceResultT::Normal

This is the normal vector of the hit surface.

unsigned int AnimPoseT::TraceResultT::TriNr

The number of the hit triangle in the hit mesh. Can be -1 (that is, larger then the number of triangles in the mesh) if the hit triangle cannot be determined.


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