BEPUphysics.NarrowPhaseSystems.Pairs.MobileMeshStaticMeshPairHandler.UpdateContainedPairs C# (CSharp) Method

UpdateContainedPairs() protected method

protected UpdateContainedPairs ( float dt ) : void
dt float
return void
        protected override void UpdateContainedPairs(float dt)
        {
            var overlappedElements = CommonResources.GetIntList();
            mesh.Mesh.Tree.GetOverlaps(mobileMesh.boundingBox, overlappedElements);
            for (int i = 0; i < overlappedElements.Count; i++)
            {
                TryToAdd(overlappedElements.Elements[i]);
            }

            CommonResources.GiveBack(overlappedElements);

        }