BEPUphysics.NarrowPhaseSystems.Pairs.DetectorVolumeCompoundPairHandler.Initialize C# (CSharp) Method

Initialize() public method

Initializes the pair handler.
public Initialize ( BroadPhaseEntry entryA, BroadPhaseEntry entryB ) : void
entryA BEPUphysics.BroadPhaseEntries.BroadPhaseEntry First entry in the pair.
entryB BEPUphysics.BroadPhaseEntries.BroadPhaseEntry Second entry in the pair.
return void
        public override void Initialize(BroadPhaseEntry entryA, BroadPhaseEntry entryB)
        {
            compound = entryA as CompoundCollidable;
            if (compound == null)
            {
                compound = entryB as CompoundCollidable;
                if (compound == null)
                {
                    throw new Exception("Inappropriate types used to initialize pair.");
                }
            }


            base.Initialize(entryA, entryB);
        }
DetectorVolumeCompoundPairHandler