瀏覽代碼

debugging on approaches

Zachary Pavlov 18 年之前
父節點
當前提交
50f646ed6b
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      direct/src/distributed/DistributedCartesianGridAI.py

+ 11 - 0
direct/src/distributed/DistributedCartesianGridAI.py

@@ -128,6 +128,17 @@ class DistributedCartesianGridAI(DistributedNodeAI, CartesianGridBase):
             self.notify.warning(
                 "%s handleAvatarZoneChange %s: not a valid zone (%s) for pos %s" %
                 (self.doId, av.doId, zoneId, pos))
+            try:
+                print "avatar is at %s, %s"%(av.getPos(av.getParentObj()), av.currParentPos)
+                if(hasattr(av,"impulses")):
+                    print "av has %s impulses"%av.impulses
+                for i in av.impulses:
+                    print "impulse: %s"%i
+                    print "target is %s"%av.impulses[i].targetPos()
+                    print "heading is %s"%.impulses[i].relH
+                    
+            except:
+                print "issue with impulse code, talk to Zac"
             return
 
         # Set the location on the server.