code-google-com / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Add per-triangle collision information for physical properties lookup (friction, restitution etc) #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Feature information / callback mechanism will be added, and per-contact 
point friction/restitution too.

Some functionality in the BVH tree is already prepared for this.

Original issue reported on code.google.com by erwin.coumans on 7 Aug 2006 at 7:48

GoogleCodeExporter commented 9 years ago

Original comment by erwin.coumans on 7 Aug 2006 at 7:49

GoogleCodeExporter commented 9 years ago
Per-triangle friction/restitution requires a callback implementation. This 
callback 
can store the friction and/or restitution in the contact point.

Each CollisionObject that needs this material-callback has to set the 
collisionFlag 
to ccdObjectCi.m_collisionFlags = CollisionObject::customMaterialCallback;

See ConcaveDemo for an example, in particular CustomMaterialCombinerCallback.

Original comment by erwin.coumans on 10 Aug 2006 at 8:35