Open mandusulrungtang opened 1 year ago
Hi, it looks like you would like to use the gatherStrided method to convert your data from double to float. That is not the purpose of this method. The method only copys data from different layouts into a dense array without doing data type conversions. E. g. it copies an array of PxVec4 into a dense array of PxVec3 but the data type is already float. In your case, you probably need to create a PxArray (or other array type) out of your data in mesh->getVerts() and store the vertex information as float instead of doubles. Unfortunately PhysX does not offer methods for that conversion out of the box. Hope that solves your problem.
I I used (double) vertices. Used UE5 LARGE_WORLD_COORDINATES
I think this code Wrong.; Cooking.h - 73 Line
elemSize = 12 stride = 24
PxMemCopy . (float, float, float) <- (double , double , double)