Recast: make InputGeom::raycastMesh const

Its parameters and the method itself can be const.
This commit is contained in:
Kawe Mazidjatari 2024-08-13 00:51:51 +02:00
parent 552dc98560
commit ee92ce8fe2
2 changed files with 2 additions and 2 deletions

View File

@ -489,7 +489,7 @@ static bool isectSegAABB(const float* sp, const float* sq,
}
bool InputGeom::raycastMesh(float* src, float* dst, float& tmin)
bool InputGeom::raycastMesh(const float* src, const float* dst, float& tmin) const
{
// Prune hit ray.
float btmin, btmax;

View File

@ -131,7 +131,7 @@ public:
const rcChunkyTriMesh* getChunkyMesh() const { return m_chunkyMesh; }
const BuildSettings* getBuildSettings() const { return m_hasBuildSettings ? &m_buildSettings : 0; }
bool raycastMesh(float* src, float* dst, float& tmin);
bool raycastMesh(const float* src, const float* dst, float& tmin) const;
/// @name Off-Mesh connections.
///@{