BEPUphysics.NarrowPhaseSystems.Pairs.CompoundConvexPairHandler.UpdateContainedPairs C# (CSharp) Méthode

UpdateContainedPairs() protected méthode

protected UpdateContainedPairs ( ) : void
Résultat void
        protected override void UpdateContainedPairs()
        {
            var overlappedElements = PhysicsResources.GetCompoundChildList();
            compoundInfo.hierarchy.Tree.GetOverlaps(convexInfo.boundingBox, overlappedElements);
            for (int i = 0; i < overlappedElements.Count; i++)
            {
                TryToAdd(overlappedElements.Elements[i].CollisionInformation, CollidableB, overlappedElements.Elements[i].Material);
            }

            PhysicsResources.GiveBack(overlappedElements);


        }