Skip to content

Add support for convex mesh shape

Add ConvexMeshShape QML element that takes a .mesh file and creates a PxConvexMesh from the convex hull of that mesh. Meshes are shared so that only one mesh is created for each file path.

TODOs and limitations of the initial version:

  • The only supported type is Triangles draw mode with Float32 vertices and UnsignedInt32 indices.
  • Offline cooking is not supported.
  • Modifying the shape dynamically does not work after the simulation has started. (This also applies to the other shapes.)

Merge request reports