BEPUphysics.Vehicle.Vehicle.Update C# (CSharp) Метод

Update() публичный Метод

Computes information required during the later update. Called once before the iteration loop.
public Update ( float dt ) : void
dt float Time since previous frame in simulation seconds.
Результат void
        public override void Update(float dt)
        {
            //TODO: to help balance multithreading, what if each wheel were its own SolverUpdateable
            //(no more CombinedUpdateable, basically)
            //This might be okay, but chances are if each was totally isolated, the 'enter exit'
            //of the monitor would be more expensive than just going in all at once and leaving at once.
            //Maybe a SolverGroup instead of CombinedUpdateable, though.

            //Update the wheel 'constraints.'
            foreach (Wheel wheel in Wheels)
            {
                if (wheel.isActiveInSolver)
                    wheel.PreStep(dt);
            }
        }