PrimeWorldEditor/src/Core/SRayIntersection.h

22 lines
445 B
C++

#ifndef SRAYINTERSECTION
#define SRAYINTERSECTION
#include <Common/types.h>
class CSceneNode;
struct SRayIntersection
{
bool Hit;
float Distance;
CSceneNode *pNode;
u32 ComponentIndex;
SRayIntersection() {}
SRayIntersection(bool _Hit, float _Distance, CSceneNode *_pNode, u32 _ComponentIndex)
: Hit(_Hit), Distance(_Distance), pNode(_pNode), ComponentIndex(_ComponentIndex) {}
};
#endif // SRAYINTERSECTION