コード例 #1
0
 protected internal override void CollectInvolvedEntities(DataStructures.RawList <Entity> outputInvolvedEntities)
 {
     //This should never really have to be called.
     if (entityA != null)
     {
         outputInvolvedEntities.Add(entityA);
     }
     if (entityB != null)
     {
         outputInvolvedEntities.Add(entityB);
     }
 }
コード例 #2
0
 protected internal override void CollectInvolvedEntities(DataStructures.RawList <Entity> outputInvolvedEntities)
 {
     //The default implementation for solver groups looks at every single subconstraint.
     //That's not necessary for these special constraints.
     if (entityA != null)
     {
         outputInvolvedEntities.Add(entityA);
     }
     if (entityB != null)
     {
         outputInvolvedEntities.Add(entityB);
     }
 }