2015-07-26 21:39:49 +00:00
|
|
|
#ifndef SRAYINTERSECTION
|
|
|
|
#define SRAYINTERSECTION
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
class CSceneNode;
|
|
|
|
|
|
|
|
struct SRayIntersection
|
|
|
|
{
|
|
|
|
bool Hit;
|
|
|
|
float Distance;
|
|
|
|
CSceneNode *pNode;
|
2015-11-28 18:37:22 +00:00
|
|
|
u32 ComponentIndex;
|
2015-07-26 21:39:49 +00:00
|
|
|
|
|
|
|
SRayIntersection() {}
|
2015-11-28 18:37:22 +00:00
|
|
|
SRayIntersection(bool _Hit, float _Distance, CSceneNode *_pNode, u32 _ComponentIndex)
|
|
|
|
: Hit(_Hit), Distance(_Distance), pNode(_pNode), ComponentIndex(_ComponentIndex) {}
|
2015-07-26 21:39:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SRAYINTERSECTION
|
|
|
|
|