Exemple #1
0
 def getSearchLoc(self, world_loc=True):
     if not self.search_mod:
         if self.searchModifiers:
             self.search_mod = getAverageVector(self.searchModifiers)
         else:
             return vector([0, 0, 0])
     if world_loc:
         return self.search_mod + self.getLoc(world_loc=True)
     return self.search_mod * self.mesh.mat_i + self.getLoc(world_loc=False)
Exemple #2
0
 def getSearchMod(self):
     return getAverageVector(self.searchModifiers)