BEPUphysics.BroadPhaseEntries.MobileCollidables.CompoundHelper.SplitCompound C# (CSharp) Method

SplitCompound() public static method

Splits a single compound collidable into two separate compound collidables and computes information needed by the simulation.
public static SplitCompound ( bool>.Func splitPredicate, Entity a, Entity &b ) : bool
splitPredicate bool>.Func Delegate which determines if a child in the original compound should be moved to the new compound.
a Entity Original compound to be split. Children in this compound will be removed and added to the other compound.
b Entity Compound to receive children removed from the original compound.
return bool
        public static bool SplitCompound(Func<CompoundChild, bool> splitPredicate,
            Entity<CompoundCollidable> a, out Entity<CompoundCollidable> b)
        {
            var childContributions = a.CollisionInformation.Shape.ComputeChildContributions();
            return SplitCompound(childContributions, splitPredicate, a, out b);
        }
        /// <summary>

Same methods

CompoundHelper::SplitCompound ( IList childContributions, bool>.Func splitPredicate, CompoundCollidable a, CompoundCollidable b, ShapeDistributionInformation &distributionInfoA, ShapeDistributionInformation &distributionInfoB, float &weightA, float &weightB ) : bool
CompoundHelper::SplitCompound ( IList childContributions, bool>.Func splitPredicate, Entity a, Entity &b ) : bool
CompoundHelper::SplitCompound ( IList childContributions, bool>.Func splitPredicate, Entity a, Entity &b, ShapeDistributionInformation &distributionInfoA, ShapeDistributionInformation &distributionInfoB ) : bool