コード例 #1
0
        /// <summary>
        /// Called when the spatial partition detected that an old overlap was removed.
        /// </summary>
        /// <param name="overlap">The overlapping pair of collision objects.</param>
        void IBroadPhase <CollisionObject> .Remove(Pair <CollisionObject> overlap)
        {
            var contactSet = CandidatePairs.Remove(overlap);

            if (contactSet != null)
            {
                _obsoleteContactSetList.Add(contactSet);
            }
        }
コード例 #2
0
 /// <summary>
 /// Called when the spatial partition detected that a collision object was removed.
 /// </summary>
 /// <param name="collisionObject">The collision objects to remove.</param>
 void IBroadPhase <CollisionObject> .Remove(CollisionObject collisionObject)
 {
     CandidatePairs.Remove(collisionObject, _obsoleteContactSetList);
 }