mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
debugging on approaches
This commit is contained in:
parent
50f646ed6b
commit
a25ba7ef8b
@ -100,6 +100,7 @@ class DistributedCartesianGridAI(DistributedNodeAI, CartesianGridBase):
|
|||||||
av = self.gridObjects[avId]
|
av = self.gridObjects[avId]
|
||||||
# handle a missing object after it is already gone?
|
# handle a missing object after it is already gone?
|
||||||
if (av.isEmpty()):
|
if (av.isEmpty()):
|
||||||
|
task.delayTime = 1.0
|
||||||
del self.gridObjects[avId]
|
del self.gridObjects[avId]
|
||||||
continue
|
continue
|
||||||
pos = av.getPos()
|
pos = av.getPos()
|
||||||
@ -135,8 +136,8 @@ class DistributedCartesianGridAI(DistributedNodeAI, CartesianGridBase):
|
|||||||
for i in av.impulses:
|
for i in av.impulses:
|
||||||
print "impulse: %s"%i
|
print "impulse: %s"%i
|
||||||
print "target is %s"%av.impulses[i].targetPos()
|
print "target is %s"%av.impulses[i].targetPos()
|
||||||
print "heading is %s"%.impulses[i].relH
|
print "heading is %s"%av.impulses[i].relH
|
||||||
|
|
||||||
except:
|
except:
|
||||||
print "issue with impulse code, talk to Zac"
|
print "issue with impulse code, talk to Zac"
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user