I am new to bullet and, having tried a few things out, got stuck at the point where I am trying to place a soft body (an ellipsoid) on a terrain object (btHeightfieldTerrainShape).
First thing, it crashes in "btSoftBodyConcaveCollisionAlgorithm.cpp" because of the line:
Code: Select all
shapeCache[partId][triangleIndex] = tm;
shapeCache is a static initialised as so:
Code: Select all
static const int maxParts = 1;
static const int maxTriangleIndex = 100*100;
btCollisionShape* shapeCache[maxParts][maxTriangleIndex];
Has anybody managed to have terrain/soft-body collision working?
Thanks in advance for any information,
Isi
PS: I've tested this in bullet 2.69.and 2.70. What I've done is basically mix the ccd, soft body and car demo: collision between soft & rigid bodies works fine, it's just with the terrain that it goes wrong =/
Edited: I'm still investigating the problem. Interestingly, the collision works fine when disabling this shape cache.