fix padding in btSolverConstraint, see Issue 650
fix some warnings
This commit is contained in:
@@ -44,7 +44,7 @@ btVector3 btConvexPointCloudShape::localGetSupportingVertexWithoutMargin(const b
|
||||
if( m_numPoints > 0 )
|
||||
{
|
||||
// Here we take advantage of dot(a*b, c) = dot( a, b*c) to do less work. Note this transformation is true mathematically, not numerically.
|
||||
btVector3 scaled = vec * m_localScaling;
|
||||
// btVector3 scaled = vec * m_localScaling;
|
||||
int index = (int) vec.maxDot( &m_unscaledPoints[0], m_numPoints, maxDot); //FIXME: may violate encapsulation of m_unscaledPoints
|
||||
return getScaledPoint(index);
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ const char* btStridingMeshInterface::serialize(void* dataBuffer, btSerializer* s
|
||||
int gfxindex;
|
||||
// btVector3 triangle[3];
|
||||
|
||||
btVector3 meshScaling = getScaling();
|
||||
// btVector3 meshScaling = getScaling();
|
||||
|
||||
///if the number of parts is big, the performance might drop due to the innerloop switch on indextype
|
||||
for (part=0;part<graphicssubparts ;part++,memPtr++)
|
||||
|
||||
Reference in New Issue
Block a user