mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Format navmesh water vertices and indices
This commit is contained in:
parent
483f370b01
commit
1b9b61b60b
@ -188,27 +188,15 @@ namespace DetourNavigator
|
||||
const RecastParams& params, rcHeightfield& solid)
|
||||
{
|
||||
const std::array vertices{
|
||||
rectangle.mBounds.mMin.x(),
|
||||
rectangle.mHeight,
|
||||
rectangle.mBounds.mMin.y(),
|
||||
rectangle.mBounds.mMin.x(),
|
||||
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(),
|
||||
rectangle.mBounds.mMin.x(), rectangle.mHeight, rectangle.mBounds.mMin.y(), // vertex 0
|
||||
rectangle.mBounds.mMin.x(), rectangle.mHeight, rectangle.mBounds.mMax.y(), // vertex 1
|
||||
rectangle.mBounds.mMax.x(), rectangle.mHeight, rectangle.mBounds.mMax.y(), // vertex 2
|
||||
rectangle.mBounds.mMax.x(), rectangle.mHeight, rectangle.mBounds.mMin.y(), // vertex 3
|
||||
};
|
||||
|
||||
const std::array indices{
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
2,
|
||||
3,
|
||||
0, 1, 2, // triangle 0
|
||||
0, 2, 3, // triangle 1
|
||||
};
|
||||
|
||||
const std::array<unsigned char, 2> areas{ areaType, areaType };
|
||||
|
Loading…
x
Reference in New Issue
Block a user