[ODE] Realistic friction based on material.
mikhail.zoline at simlog.com
Fri May 18 09:33:56 MST 2007
Use GeomSetData (dGeomID, void *) and void *dGeomGetData (dGeomID) to
set and get your materials.
In materials you can define mu, bounciness, bounce_vel, soft_erp,
soft_cfm, etc, etc. See the manual, contact joint section.
In nearCallback (void *data, dGeomID o1, dGeomID o2) you can get
the data associated with o1 and o2 and set your custom friction
parameters before the creation of contacts.
Jose Marin wrote:
> I would like to achieve a more "realistic" moviment of bodies, for example, a metal ball will roll faster in a stone ground than on a sand ground.
> I would like that the interation between objects is based on their materials, not on a fixed value for all.
> I think that I must check the material of each object evolved on the collision, and set the value of surface.mu, on the nearCallback function, right?
> Is there any table with friction constants for most common materials?
> And havint that, how I set the correct resulting value for surface.mu? Multiply? Sum?
> Also, the way of the materials behavior deppends of their material.
> For example, if a metal ball falls on a stone ground, probably ti won't jump back, but if the ball is made of, say, plastic, it will jump several times.
> How I set this behavior?
> Thanks for any tip!
> Fale com seus amigos de graça com o novo Yahoo! Messenger
> ODE mailing list
> ODE at ode.org
More information about the ODE