public static SplitCompound ( bool>.Func |
||
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>
CompoundHelper::SplitCompound ( IList |
|
CompoundHelper::SplitCompound ( IList |
|
CompoundHelper::SplitCompound ( IList |