PyBullet: add support for internal edge filtering for height field terrains

This commit is contained in:
Erwin Coumans
2019-08-09 10:14:14 -07:00
parent 046e036519
commit 54111f7023
6 changed files with 139 additions and 12 deletions

View File

@@ -612,6 +612,11 @@ btTransform ConvertURDF2BulletInternal(
}
}
if (compoundShape->getShapeType() == TERRAIN_SHAPE_PROXYTYPE)
{
col->setCollisionFlags(col->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK);
}
btTransform tr;
tr.setIdentity();
tr = linkTransformInWorldSpace;