From c80b9b7b415b79102bf6343da5208467005d3ce8 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Tue, 22 Jul 2025 01:01:06 -0400 Subject: [PATCH] Removed unnecessary agentMaxClimb accessor --- RecastDemo/Include/Sample.h | 2 -- RecastDemo/Source/NavMeshTesterTool.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index d1eadb65..07800caf 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -167,8 +167,6 @@ public: virtual void handleUpdate(float dt); virtual void collectSettings(struct BuildSettings& settings); - float getAgentClimb() { return agentMaxClimb; } - void updateToolStates(float dt) const; void initToolStates(Sample* sample) const; void resetToolStates() const; diff --git a/RecastDemo/Source/NavMeshTesterTool.cpp b/RecastDemo/Source/NavMeshTesterTool.cpp index b00ed454..7d49a324 100644 --- a/RecastDemo/Source/NavMeshTesterTool.cpp +++ b/RecastDemo/Source/NavMeshTesterTool.cpp @@ -1106,7 +1106,7 @@ void NavMeshTesterTool::handleRender() const float agentRadius = sample->agentRadius; const float agentHeight = sample->agentHeight; - const float agentClimb = sample->getAgentClimb(); + const float agentClimb = sample->agentMaxClimb; dd.depthMask(false); if (sposSet) { drawAgent(spos, agentRadius, agentHeight, agentClimb, startCol); }