#ifndef SRAYINTERSECTION #define SRAYINTERSECTION #include #include 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