All pastes #729715 Raw Edit

Stuff

public text v1 · immutable
·published 2007-10-08 07:18 UTC
rendered paste body
static float accumulator = 0;

        private void UpdatePhysics( float deltaTime )
        {
            const float timeStep = 0.03f;

            accumulator += deltaTime;

            while( accumulator > timeStep )
            {
                testEnt.Update( timeStep );
                accumulator -= timeStep;
            }
        }