forked from bartvdbraak/blender
BGE: update for new soft body helpers API.
This commit is contained in:
parent
7e498afe33
commit
1941ef0940
@ -232,7 +232,7 @@ bool CcdPhysicsController::CreateSoftbody()
|
|||||||
PHY_ScalarType indexType;
|
PHY_ScalarType indexType;
|
||||||
trimeshshape->getMeshInterface()->getLockedVertexIndexBase(&vertexBase,numverts,vertexType,vertexstride,&indexbase,indexstride,numtris,indexType);
|
trimeshshape->getMeshInterface()->getLockedVertexIndexBase(&vertexBase,numverts,vertexType,vertexstride,&indexbase,indexstride,numtris,indexType);
|
||||||
|
|
||||||
psb = btSoftBodyHelpers::CreateFromTriMesh(worldInfo,(const btScalar*)vertexBase,(const int*)indexbase,numtris);
|
psb = btSoftBodyHelpers::CreateFromTriMesh(worldInfo,(const btScalar*)vertexBase,(const int*)indexbase,numtris,false);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
@ -249,7 +249,7 @@ bool CcdPhysicsController::CreateSoftbody()
|
|||||||
PHY_ScalarType indexType;
|
PHY_ScalarType indexType;
|
||||||
trimeshshape->getMeshInterface()->getLockedVertexIndexBase(&vertexBase,numverts,vertexType,vertexstride,&indexbase,indexstride,numtris,indexType);
|
trimeshshape->getMeshInterface()->getLockedVertexIndexBase(&vertexBase,numverts,vertexType,vertexstride,&indexbase,indexstride,numtris,indexType);
|
||||||
|
|
||||||
psb = btSoftBodyHelpers::CreateFromTriMesh(worldInfo,(const btScalar*)vertexBase,(const int*)indexbase,numtris);
|
psb = btSoftBodyHelpers::CreateFromTriMesh(worldInfo,(const btScalar*)vertexBase,(const int*)indexbase,numtris,false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// store face tag so that we can find our original face when doing ray casting
|
// store face tag so that we can find our original face when doing ray casting
|
||||||
|
Loading…
Reference in New Issue
Block a user