mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 04:10:24 +00:00
Format navmesh water vertices and indices
This commit is contained in:
parent
483f370b01
commit
1b9b61b60b
1 changed files with 6 additions and 18 deletions
|
@ -188,27 +188,15 @@ namespace DetourNavigator
|
||||||
const RecastParams& params, rcHeightfield& solid)
|
const RecastParams& params, rcHeightfield& solid)
|
||||||
{
|
{
|
||||||
const std::array vertices{
|
const std::array vertices{
|
||||||
rectangle.mBounds.mMin.x(),
|
rectangle.mBounds.mMin.x(), rectangle.mHeight, rectangle.mBounds.mMin.y(), // vertex 0
|
||||||
rectangle.mHeight,
|
rectangle.mBounds.mMin.x(), rectangle.mHeight, rectangle.mBounds.mMax.y(), // vertex 1
|
||||||
rectangle.mBounds.mMin.y(),
|
rectangle.mBounds.mMax.x(), rectangle.mHeight, rectangle.mBounds.mMax.y(), // vertex 2
|
||||||
rectangle.mBounds.mMin.x(),
|
rectangle.mBounds.mMax.x(), rectangle.mHeight, rectangle.mBounds.mMin.y(), // vertex 3
|
||||||
rectangle.mHeight,
|
|
||||||
rectangle.mBounds.mMax.y(),
|
|
||||||
rectangle.mBounds.mMax.x(),
|
|
||||||
rectangle.mHeight,
|
|
||||||
rectangle.mBounds.mMax.y(),
|
|
||||||
rectangle.mBounds.mMax.x(),
|
|
||||||
rectangle.mHeight,
|
|
||||||
rectangle.mBounds.mMin.y(),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::array indices{
|
const std::array indices{
|
||||||
0,
|
0, 1, 2, // triangle 0
|
||||||
1,
|
0, 2, 3, // triangle 1
|
||||||
2,
|
|
||||||
0,
|
|
||||||
2,
|
|
||||||
3,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::array<unsigned char, 2> areas{ areaType, areaType };
|
const std::array<unsigned char, 2> areas{ areaType, areaType };
|
||||||
|
|
Loading…
Reference in a new issue