mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: make InputGeom::raycastMesh const
Its parameters and the method itself can be const.
This commit is contained in:
parent
552dc98560
commit
ee92ce8fe2
@ -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;
|
||||
|
@ -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.
|
||||
///@{
|
||||
|
Loading…
x
Reference in New Issue
Block a user