JoltCollider3D/ConvexHullCollider3D: Improve debug mesh generation

This commit is contained in:
SirLynix
2023-04-10 11:51:48 +02:00
committed by Jérôme Leclercq
parent 6a609055dc
commit ad1a7cf43e
2 changed files with 20 additions and 16 deletions

View File

@@ -308,7 +308,7 @@ namespace Nz
UInt16 index = SafeCast<UInt16>(vertices.size());
vertices.push_back(position);
vertices.push_back(offsetMatrix * position);
vertexCache.emplace(position, index);
return index;
@@ -320,8 +320,8 @@ namespace Nz
btVector3 from, to;
m_shape->getEdge(i, from, to);
indices.push_back(InsertVertex(offsetMatrix * FromBullet(from)));
indices.push_back(InsertVertex(offsetMatrix * FromBullet(to)));
indices.push_back(InsertVertex(FromBullet(from)));
indices.push_back(InsertVertex(FromBullet(to)));
}
}