Improved variable naming in RecastArea.cpp (#636)

* Cleanup compact heightfield functions in RecastArea.cpp
* More improved variable names for RecastArea.cpp
* Improved variable names and documentation in rcOffsetPoly
* Don't normalize the miter bisector in rcOffsetPoly since this needs to be proportional to both segment normals.
* Moved vector normalization out of rcOffsetPoly into a helper function rcVsafeNormalize
* Rename local variables in rcOffsetPoly
* Rename BMiterX/Z to cornerMIterX/Z
* Also fixed some comment descriptions
* Added docstring for rcVsafeNormalize
* Improved clarity of a few comments
This commit is contained in:
Graham Pentheny
2023-07-23 15:59:20 -04:00
committed by GitHub
parent d2cd095abb
commit 8a42fb6348
3 changed files with 683 additions and 524 deletions

View File

@@ -466,10 +466,10 @@ bool Sample_SoloMesh::handleBuild()
}
//
// Step 3. Filter walkables surfaces.
// Step 3. Filter walkable surfaces.
//
// Once all geoemtry is rasterized, we do initial pass of filtering to
// Once all geometry is rasterized, we do initial pass of filtering to
// remove unwanted overhangs caused by the conservative rasterization
// as well as filter spans where the character cannot possibly stand.
if (m_filterLowHangingObstacles)