Compound Shape's children with different Friction ?
Posted: Tue Dec 16, 2014 11:04 am
It seems like Bullet does not support Compound Shape with different friction children.
How do i achieve this ?
How do i achieve this ?
https://pybullet.org/Bullet/phpBB3/
Code: Select all
const btCollisionObject* colObj0 = colObj0Wrapper->getCollisionObject();
const btCollisionObject* colObj1 = colObj1Wrapper->getCollisionObject();
const btCollisionShape* colShape0 = colObj0->getCollisionShape();
const btCollisionShape* colShape1 = colObj1->getCollisionShape();
if (colShape0==myCompound) {
if (index0<someNumber) {
cp.m_combinedFriction = cp.m_combinedRestitution = 0;
return true;
}
else {
cp.m_combinedFriction = cp.m_combinedRestitution = 10;
return true;
}
}
// Do the same for colShape1 and index1