mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-12 06:45:12 +00:00
SSurface: Make IntersectsRay() a const member function
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "Core/CRayCollisionTester.h"
|
||||
#include <Common/Math/MathUtil.h>
|
||||
|
||||
std::pair<bool,float> SSurface::IntersectsRay(const CRay& rkRay, bool AllowBackfaces, float LineThreshold)
|
||||
std::pair<bool,float> SSurface::IntersectsRay(const CRay& rkRay, bool AllowBackfaces, float LineThreshold) const
|
||||
{
|
||||
bool Hit = false;
|
||||
float HitDist = 0.0f;
|
||||
|
||||
@@ -32,7 +32,7 @@ struct SSurface
|
||||
|
||||
SSurface() = default;
|
||||
|
||||
std::pair<bool,float> IntersectsRay(const CRay& rkRay, bool AllowBackfaces = false, float LineThreshold = 0.02f);
|
||||
std::pair<bool,float> IntersectsRay(const CRay& rkRay, bool AllowBackfaces = false, float LineThreshold = 0.02f) const;
|
||||
};
|
||||
|
||||
#endif // SSURFACE_H
|
||||
|
||||
Reference in New Issue
Block a user