[ODE] Problem with rolling sphere...
James Myers
espmiii at yahoo.com
Tue Dec 3 15:35:03 2002
I am having a similar problem. I read in the archives
that you need to add a force opposite to travel
direction because (for example) a pool ball will
actually be losing energy due to squashing the carpet
as it rolls along. This effect is not simulated
automatically.
I tried several variations, then one that works best
for me is to add a force of about
-(.08*dBodyGetLinearVelocity) per tick, but the
spheres tend to roll somewhat off course as they slow
down.
James
--- Charles Ingalls <charles.ingalls@freesbee.fr>
wrote:
> Here's my newbie problem.
>
> Let's suppose a sphere rolling on a plane.
> If I use this contact parameters:
>
> contact[i].surface.mode = dContactBounce;
> contact[i].surface.mu = dInfinity;
> contact[i].surface.mu2 = 0;
> contact[i].surface.bounce = 0.5;
> contact[i].surface.bounce_vel = 0.1;
>
> My sphere fall on the floor and roll again and again
> and never stop.
>
> Does this mean that I must use a friction contact
> between the sphere and the floor ?
> How could I do to set the good parameters for it ?
>
> Or I must use air friction resistance ? How could I
> make this ?
>
> Thanks for answering me...
>
> Charles.
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com