How to adjust skin widh in bullet?

winspear
Posts: 77
Joined: Thu Nov 26, 2009 6:32 pm

How to adjust skin widh in bullet?

Post by winspear »

I have used Nvidia physx before and SKIN_WIDTH used to control the amount of penetration allowed between two bodies.
What is the equivalent of SKIN_WIDTH in bullet and how to set it?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: How to adjust skin widh in bullet?

Post by Erwin Coumans »

NVidia works different from Bullet, PhysX is penetration based hence the skin width.

Bullet can deal with contacts with both negative (penetration) and positive distances. There are some parameters to control contact distances, such as

collisionShape->setMargin(...) is vaguely similar to skinwidth
Contact distances above the threshold set by collisionObject->setContactProcessingThreshold(...) are ignored/discarded.
Allowing a deeper penetration in the constraint solver, using world->getSolverInfo().m_linearSlop

Thanks,
Erwin