mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: add note to detail vert height offset
This commit is contained in:
parent
9b1651420c
commit
fc1bfa8bfe
@ -1407,6 +1407,10 @@ bool rcBuildPolyMeshDetail(rcContext* ctx, const rcPolyMesh& mesh, const rcCompa
|
|||||||
{
|
{
|
||||||
verts[j*3+0] += orig[0];
|
verts[j*3+0] += orig[0];
|
||||||
verts[j*3+1] += orig[1];
|
verts[j*3+1] += orig[1];
|
||||||
|
|
||||||
|
// note(amos): the offset appears to be necessary, otherwise BVTrees
|
||||||
|
// are built below the polygon.
|
||||||
|
// see https://github.com/recastnavigation/recastnavigation/issues/647
|
||||||
verts[j*3+2] += orig[2] + chf.ch; // Is this offset necessary?
|
verts[j*3+2] += orig[2] + chf.ch; // Is this offset necessary?
|
||||||
}
|
}
|
||||||
// Offset poly too, will be used to flag checking.
|
// Offset poly too, will be used to flag checking.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user