Closed KielanT closed 2 years ago
It's a convex mesh, so this is the expected result. If you need it to be hollow, try creating a triangle mesh collider instead.
It's a convex mesh, so this is the expected result. If you need it to be hollow, try creating a triangle mesh collider instead.
This solved my issue thank you
Hi, I'm trying to convert a mesh from an assimp object to a physx convex mesh. The code I have done works fine for object such as a vehicle, however for a mesh that is a loop the physx mesh gets filled in. (Images below). Any ideas on how I can fix this?
` // Create the mesh static physx::PxConvexMesh CreateConvexMesh(const physx::PxVec3 verts, const physx::PxU32 numVerts, physx::PxPhysics physics, physx::PxCooking cooking) { // Create descriptor for convex mesh physx::PxConvexMeshDesc convexDesc; convexDesc.points.count = numVerts; convexDesc.points.stride = sizeof(physx::PxVec3); convexDesc.points.data = verts; convexDesc.flags = physx::PxConvexFlag::eCOMPUTE_CONVEX;
`
What the mesh looks like (In blender but looks like this in my project)
What the mesh looks like in the physx visual debugger