mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-15 00:40:02 +00:00
Format box shape indices grouping by triangle
This commit is contained in:
parent
bfb60c5504
commit
afd6f0739c
@ -189,42 +189,18 @@ namespace DetourNavigator
|
|||||||
void RecastMeshBuilder::addObject(const btBoxShape& shape, const btTransform& transform, const AreaType areaType)
|
void RecastMeshBuilder::addObject(const btBoxShape& shape, const btTransform& transform, const AreaType areaType)
|
||||||
{
|
{
|
||||||
constexpr std::array<int, 36> indices{ {
|
constexpr std::array<int, 36> indices{ {
|
||||||
0,
|
0, 2, 3, // triangle 0
|
||||||
2,
|
3, 1, 0, // triangle 1
|
||||||
3,
|
0, 4, 6, // triangle 2
|
||||||
3,
|
6, 2, 0, // triangle 3
|
||||||
1,
|
0, 1, 5, // triangle 4
|
||||||
0,
|
5, 4, 0, // triangle 5
|
||||||
0,
|
7, 5, 1, // triangle 6
|
||||||
4,
|
1, 3, 7, // triangle 7
|
||||||
6,
|
7, 3, 2, // triangle 8
|
||||||
6,
|
2, 6, 7, // triangle 9
|
||||||
2,
|
7, 6, 4, // triangle 10
|
||||||
0,
|
4, 5, 7, // triangle 11
|
||||||
0,
|
|
||||||
1,
|
|
||||||
5,
|
|
||||||
5,
|
|
||||||
4,
|
|
||||||
0,
|
|
||||||
7,
|
|
||||||
5,
|
|
||||||
1,
|
|
||||||
1,
|
|
||||||
3,
|
|
||||||
7,
|
|
||||||
7,
|
|
||||||
3,
|
|
||||||
2,
|
|
||||||
2,
|
|
||||||
6,
|
|
||||||
7,
|
|
||||||
7,
|
|
||||||
6,
|
|
||||||
4,
|
|
||||||
4,
|
|
||||||
5,
|
|
||||||
7,
|
|
||||||
} };
|
} };
|
||||||
|
|
||||||
for (std::size_t i = 0; i < indices.size(); i += 3)
|
for (std::size_t i = 0; i < indices.size(); i += 3)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user