[ODE] friction and restitution

Dimitris Papavasiliou jimmyp at hal.csd.auth.gr
Sun Oct 3 01:29:00 MST 2004


On Sunday 03 October 2004 00:45, Adam D. Moss wrote:
> Dimitris Papavasiliou wrote:
> > So isn't there a way to define some sort of friction and restitution
> > coefficients *per body* not per pair and then be able to calculate the
> > coefficients for the pair from them?
>
> Certainly.  Attach your own structure with this (and any other)
> per-body attributes to the body with dBodySetData().  Then in
> the collision callback, use dBodyGetData() to get the attributes
> off the bodies again and calculate appropriate friction etc.
> for the pair.

Err, no, this was supposed to be a physics related question, not an ODE 
question. The question was whether such attributes exist in the first place, 
that is whether some measure of friction and restitution can be defined for a 
single body (from which we can calculate the respective (approximate) measure 
for a given pair) and which attributes these are.

For example: if such a friction attribute exists and for wood it is u1 and for 
steel u2 then the friction coefficients for wood-wood, wood-steel, 
steel-steel should be f(u1, u1), f(u2, u2), f(u3, u3) respectively, where f 
is some function. I've been searching all over the web for something like 
that but to no avail.

Dimitris


More information about the ODE mailing list