JoltPhysics3D: Fix JoltConvexHullCollider3D::BuildDebugMesh

This commit is contained in:
SirLynix
2023-04-09 20:11:25 +02:00
committed by Jérôme Leclercq
parent f7d0f4ca23
commit 4f1f0c6418
3 changed files with 22 additions and 9 deletions

View File

@@ -279,7 +279,7 @@ int main()
Nz::SparsePtr<Nz::Vector3f> vertices = vertexMapper.GetComponentPtr<Nz::Vector3f>(Nz::VertexComponent::Position);
#if USE_JOLT
auto shipCollider = std::make_shared<Nz::JoltConvexHullCollider3D>(vertices, vertexMapper.GetVertexCount());
auto shipCollider = std::make_shared<Nz::JoltConvexHullCollider3D>(vertices, vertexMapper.GetVertexCount(), 0.1f);
#else
auto shipCollider = std::make_shared<Nz::BulletConvexCollider3D>(vertices, vertexMapper.GetVertexCount());
#endif