BEPUphysics.UpdateableSystems.ForceFields.ForceField.IDuringForcesUpdateable C# (CSharp) Метод

IDuringForcesUpdateable() приватный Метод

Applies forces specified by the given calculation delegate to bodies in the volume. Called automatically when needed by the owning Space.
private IDuringForcesUpdateable ( float dt ) : void
dt float Time since the last frame in simulation seconds.
Результат void
        void IDuringForcesUpdateable.Update(float dt)
        {
            PreUpdate();
            affectedEntities = Shape.GetPossiblyAffectedEntities();
            if (AllowMultithreading && ThreadManager.ThreadCount > 1)
            {
                currentTimestep = dt;
                ThreadManager.ForLoop(0, affectedEntities.Count, subfunction);
            }
            else
            {
                currentTimestep = dt;
                //No multithreading, so do it directly.
                int count = affectedEntities.Count;
                for (int i = 0; i < count; i++)
                {
                    CalculateImpulsesSubfunction(i);
                }
            }
        }