mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
added dosByDistance
This commit is contained in:
parent
e6dd18f558
commit
b742e9050d
@ -96,9 +96,13 @@ class DoCollectionManager:
|
|||||||
return -1
|
return -1
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
def doByDistance(self):
|
def dosByDistance(self):
|
||||||
objs = self.doId2do.values()
|
objs = self.doId2do.values()
|
||||||
objs.sort(cmp=self._compareDistance)
|
objs.sort(cmp=self._compareDistance)
|
||||||
|
return objs
|
||||||
|
|
||||||
|
def doByDistance(self):
|
||||||
|
objs = self.dosByDistance()
|
||||||
for obj in objs:
|
for obj in objs:
|
||||||
print '%s\t%s\t%s' % (obj.doId, self._getDistanceFromLA(obj),
|
print '%s\t%s\t%s' % (obj.doId, self._getDistanceFromLA(obj),
|
||||||
obj.dclass.getName())
|
obj.dclass.getName())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user