From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- PhysX_3.4/Source/PhysXCooking/src/Cooking.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'PhysX_3.4/Source/PhysXCooking/src/Cooking.cpp') diff --git a/PhysX_3.4/Source/PhysXCooking/src/Cooking.cpp b/PhysX_3.4/Source/PhysXCooking/src/Cooking.cpp index e793b48f..5bd1aadd 100644 --- a/PhysX_3.4/Source/PhysXCooking/src/Cooking.cpp +++ b/PhysX_3.4/Source/PhysXCooking/src/Cooking.cpp @@ -335,8 +335,10 @@ PxConvexMesh* Cooking::createConvexMesh(const PxConvexMeshDesc& desc, PxPhysicsI } // copy the constructed data into the new mesh + + PxU32 nb = 0; Gu::ConvexHullData meshData; - meshBuilder.copy(meshData); + meshBuilder.copy(meshData, nb); // insert into physics Gu::ConvexMesh* convexMesh = static_cast(insertionCallback.buildObjectFromData(PxConcreteType::eCONVEX_MESH, &meshData)); @@ -347,6 +349,7 @@ PxConvexMesh* Cooking::createConvexMesh(const PxConvexMeshDesc& desc, PxPhysicsI return NULL; } + convexMesh->setNb(nb); convexMesh->setMass(meshBuilder.getMass()); convexMesh->setInertia(meshBuilder.getInertia()); if(meshBuilder.getBigConvexData()) -- cgit v1.2.3