mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-27 23:45:53 +00:00
26 lines
655 B
C++
26 lines
655 B
C++
#ifndef SRAYINTERSECTION
|
|
#define SRAYINTERSECTION
|
|
|
|
#include <Common/BasicTypes.h>
|
|
#include <Common/Math/CVector3f.h>
|
|
|
|
class CSceneNode;
|
|
|
|
struct SRayIntersection
|
|
{
|
|
bool Hit;
|
|
float Distance;
|
|
CVector3f HitPoint;
|
|
CSceneNode *pNode;
|
|
uint ComponentIndex;
|
|
|
|
SRayIntersection()
|
|
: Hit(false), Distance(0.f), HitPoint(CVector3f::skZero), pNode(nullptr), ComponentIndex(-1) {}
|
|
|
|
SRayIntersection(bool _Hit, float _Distance, CVector3f _HitPoint, CSceneNode *_pNode, uint _ComponentIndex)
|
|
: Hit(_Hit), Distance(_Distance), HitPoint(_HitPoint), pNode(_pNode), ComponentIndex(_ComponentIndex) {}
|
|
};
|
|
|
|
#endif // SRAYINTERSECTION
|
|
|