+ disable perturbation for btConvexPlaneCollisionAlgorithm, it introduces artifacts (additional points cause spheres/cylinders and other curved objects to move)
+ applied patch to mix double/single precision meshes independent from double/single precision Bullet build Thanks to Ole for the patch, http://code.google.com/p/bullet/issues/detail?id=213 + re-enable warming starting in constraint solver, it was disabled by accident + fix btConvexHullShape constructor, so accept vertices with non-16-byte striding Thanks Shawn Baird for report and fix: http://code.google.com/p/bullet/issues/detail?id=204
This commit is contained in:
@@ -44,11 +44,9 @@ void btTriangleIndexVertexArray::getLockedVertexIndexBase(unsigned char **vertex
|
||||
|
||||
numverts = mesh.m_numVertices;
|
||||
(*vertexbase) = (unsigned char *) mesh.m_vertexBase;
|
||||
#ifdef BT_USE_DOUBLE_PRECISION
|
||||
type = PHY_DOUBLE;
|
||||
#else
|
||||
type = PHY_FLOAT;
|
||||
#endif
|
||||
|
||||
type = mesh.m_vertexType;
|
||||
|
||||
vertexStride = mesh.m_vertexStride;
|
||||
|
||||
numfaces = mesh.m_numTriangles;
|
||||
@@ -64,11 +62,9 @@ void btTriangleIndexVertexArray::getLockedReadOnlyVertexIndexBase(const unsigned
|
||||
|
||||
numverts = mesh.m_numVertices;
|
||||
(*vertexbase) = (const unsigned char *)mesh.m_vertexBase;
|
||||
#ifdef BT_USE_DOUBLE_PRECISION
|
||||
type = PHY_DOUBLE;
|
||||
#else
|
||||
type = PHY_FLOAT;
|
||||
#endif
|
||||
|
||||
type = mesh.m_vertexType;
|
||||
|
||||
vertexStride = mesh.m_vertexStride;
|
||||
|
||||
numfaces = mesh.m_numTriangles;
|
||||
|
||||
Reference in New Issue
Block a user