PrimeWorldEditor/src/Core/SRayIntersection.h

24 lines
618 B
C++

#ifndef SRAYINTERSECTION
#define SRAYINTERSECTION
#include <Common/BasicTypes.h>
#include <Common/Math/CVector3f.h>
class CSceneNode;
struct SRayIntersection
{
bool Hit = false;
float Distance = 0.0f;
CVector3f HitPoint{CVector3f::skZero};
CSceneNode *pNode = nullptr;
uint ComponentIndex = UINT32_MAX;
SRayIntersection() = default;
SRayIntersection(bool _Hit, float _Distance, CVector3f _HitPoint, CSceneNode *_pNode, uint _ComponentIndex)
: Hit(_Hit), Distance(_Distance), HitPoint(_HitPoint), pNode(_pNode), ComponentIndex(_ComponentIndex) {}
};
#endif // SRAYINTERSECTION