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

CollectInvolvedEntities() защищенный Метод

Adds entities associated with the solver item to the involved entities list. Ensure that sortInvolvedEntities() is called at the end of the function. This allows the non-batched multithreading system to lock properly.
protected CollectInvolvedEntities ( RawList outputInvolvedEntities ) : void
outputInvolvedEntities RawList
Результат void
        protected internal override void CollectInvolvedEntities(RawList<Entity> outputInvolvedEntities)
        {
            outputInvolvedEntities.Add(Body);
            foreach (Wheel wheel in Wheels)
            {
                if (wheel.supportingEntity != null && !outputInvolvedEntities.Contains(wheel.supportingEntity))
                    outputInvolvedEntities.Add(wheel.supportingEntity);
            }
        }