I'm intereseted in this topic too (I still haven't used anisotropic friction yet, but I found very little about it in the Bullet documentation and forum posts). I would like to know:
1) Is there a Bullet demo that shows its usage ?
2) Does btCollisionObject::setAnisotropicFriction(...) work out of the box, or needs something like:
Code: Select all
m_dynamicsWorld->getSolverInfo().m_solverMode |= SOLVER_USE_2_FRICTION_DIRECTIONS;
or other settings ?
3) [Answer to argez] I suppose the coords are in the local frame (i.e. (0,0,1) = Z direction of the rigid body), but a more reliable opinion is welcome. Is this vector a coefficient that is applied to the default friction value, or it's a valid friction vector itself ?
4) Is it possible to override this friction vector in the custom material callback ? How ? (I would like to model a sledge with bidirectional friction in its lower part and normal friction in its upper part. Is it possible?)
Thanks for any feedback about it in advance.