i found a bug in btConvexHullShape::btConvexHullShape(const btScalar* points,int numPoints,int stride) when stride is < 16
btConvexHullShape.cpp Ln:31
change this
Code: Select all
btVector3* point = (btVector3*)(pointsBaseAddress + i*stride);
m_unscaledPoints[i] = point[0];
Code: Select all
float* point = (float*)(pointsBaseAddress + i*stride);
btVector3& v = m_unscaledPoints[i];
((float*)v)[0] = *point++;
((float*)v)[1] = *point++;
((float*)v)[2] = *point++;
((float*)v)[3] = 0;
bye
Leo Benaducci