[ODE] Frame rate problem: does sum of applied small forces equal to once applied total force in ODE ?

Bram Stolk b.stolk at gmail.com
Fri Aug 24 07:48:51 MST 2007


On 8/24/07, Dmitry Medvedev <pegasi at inbox.ru> wrote:

>  If so, then how maintain frame rate independence?

I divide the force by dt when I call dBodyAddForce.

        float magnitude = 6.2 / dt;
        dBodyAddForce(jumpboard->body, 0,0,magnitude);

With this, the body gets pushed a fixed amount, regardless of framerate.

Bram

>
> Thanks.
> _______________________________________________
> ODE mailing list
> ODE at ode.org
> http://ode.org/mailman/listinfo/ode
>


-- 
Zapp: Captain's log, stardate...er..
Kif: Ohhh. April 13th.
Zapp: April 13th. Point 2.


More information about the ODE mailing list