Browse Source

added setAirborneHeightFunc

Dave Schuyler 22 years ago
parent
commit
6d9bc4072f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/showbase/NonPhysicsWalker.py

+ 3 - 0
direct/src/showbase/NonPhysicsWalker.py

@@ -104,6 +104,9 @@ class NonPhysicsWalker(DirectObject.DirectObject):
         self.pusher.addCollider(self.cSphereNodePath, avatarNodePath)
         self.lifter.addCollider(self.cRayNodePath, avatarNodePath)
 
+    def setAirborneHeightFunc(self, getAirborneHeight):
+        self.getAirborneHeight = getAirborneHeight
+
     def deleteCollisions(self):
         del self.cTrav