[ODE] continuous forces w/ constant step size
Tyler Streeter
tylerstreeter at yahoo.com
Fri Sep 17 08:30:25 MST 2004
Ya, that's what I meant. Sorry.
Tyler
--- "Adam D. Moss" <adam at gimp.org> wrote:
> Tyler Streeter wrote:
> > void PhysicsEngine::step(dReal dt)
> > {
> > timeAccumulation += dt;
> >
> > while (dt >= STEP_SIZE)
> > {
> > //step ODE ahead by a constant value
> > ODESystem.step(STEP_SIZE);
> > }
> > }
>
> I don't have an answer to your other questions, but
> I'm
> pretty sure this shouldn't be working. ITYM:
>
> void PhysicsEngine::step(dReal dt)
> {
> timeAccumulation += dt;
>
> while (timeAccumulation >= STEP_SIZE)
> {
> //step ODE ahead by a constant value
> ODESystem.step(STEP_SIZE);
> timeAccumulation -= STEP_SIZE;
> }
> }
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
More information about the ODE
mailing list