fix padding in btSolverConstraint, see Issue 650
fix some warnings
This commit is contained in:
@@ -2534,7 +2534,7 @@ int calchullgen(float3 *verts,int verts_count, int vlimit,Array<btHullTriangle*>
|
||||
vlimit-=4;
|
||||
while(vlimit >0 && (te=extrudable(epsilon, tris)))
|
||||
{
|
||||
int3 ti=*te;
|
||||
// int3 ti=*te;
|
||||
int v=te->vmax;
|
||||
assert(!isextreme[v]); // wtf we've already done this vertex
|
||||
isextreme[v]=1;
|
||||
|
||||
@@ -539,7 +539,7 @@ btCollisionShape* btBulletWorldImporter::convertCollisionShape( btCollisionShap
|
||||
tmpPos[i].deSerializeFloat(mss->m_localPositionArrayPtr[i].m_pos);
|
||||
radii[i] = mss->m_localPositionArrayPtr[i].m_radius;
|
||||
}
|
||||
shape = new btMultiSphereShape(&tmpPos[0],&radii[0],numSpheres);
|
||||
shape = createMultiSphereShape(&tmpPos[0],&radii[0],numSpheres);
|
||||
break;
|
||||
}
|
||||
case CONVEX_HULL_SHAPE_PROXYTYPE:
|
||||
@@ -1393,6 +1393,12 @@ btScaledBvhTriangleMeshShape* btBulletWorldImporter::createScaledTrangleMeshShap
|
||||
return shape;
|
||||
}
|
||||
|
||||
btMultiSphereShape* btBulletWorldImporter::createMultiSphereShape(const btVector3* positions,const btScalar* radi,int numSpheres)
|
||||
{
|
||||
btMultiSphereShape* shape = new btMultiSphereShape(positions, radi, numSpheres);
|
||||
m_allocatedCollisionShapes.push_back(shape);
|
||||
return shape;
|
||||
}
|
||||
|
||||
btRigidBody& btBulletWorldImporter::getFixedBody()
|
||||
{
|
||||
|
||||
@@ -183,6 +183,8 @@ public:
|
||||
virtual class btCompoundShape* createCompoundShape();
|
||||
virtual class btScaledBvhTriangleMeshShape* createScaledTrangleMeshShape(btBvhTriangleMeshShape* meshShape,const btVector3& localScalingbtBvhTriangleMeshShape);
|
||||
|
||||
virtual class btMultiSphereShape* createMultiSphereShape(const btVector3* positions,const btScalar* radi,int numSpheres);
|
||||
|
||||
virtual btTriangleIndexVertexArray* createMeshInterface(btStridingMeshInterfaceData& meshData);
|
||||
|
||||
///acceleration and connectivity structures
|
||||
|
||||
@@ -1017,7 +1017,7 @@ public:
|
||||
spacebar_mouse_click = true; /* Does spacebar simulate a mouse click? */
|
||||
live_type = GLUI_LIVE_NONE;
|
||||
text = "";
|
||||
last_live_text == "";
|
||||
// last_live_text == "";
|
||||
live_inited = false;
|
||||
collapsible = false;
|
||||
is_open = true;
|
||||
|
||||
Reference in New Issue
Block a user