[ODE] Programmer request (car physics)

Andrzej Szombierski qq at kuku.eu.org
Wed Jul 28 10:22:19 MST 2004


On Wed, 28 Jul 2004, Pancini, Ettore wrote:

> 
> - I use dMassTranslate() to move the center of mass. am I wrong?
> - in using sideways slip I would mention to set the proper friction
> directions,
>   that is: set fdir1 as the direction the tyre is rolling in... correct?
> - In Slip2 = 0.004 * v, v is velocity? do you think is ok doing
> something like:
>   v = linearVelocity.length() + angularVelocity.length() ?

definitely not :)

Use dBodyGetVelocityAtPos (or something like this) to get the linear 
velocity at the contact point. Then calculate the length.

-- 
:: Andrzej Szombierski :: qq at kuku.eu.org :: http://kuku.eu.org ::
:: anszom at bezkitu.com  :: radio bez kitu :: http://bezkitu.com ::



More information about the ODE mailing list