Browse Source

added getVelocity

Samir Naik 21 years ago
parent
commit
2e58c8d9d8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/controls/NonPhysicsWalker.py

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

@@ -255,6 +255,9 @@ class NonPhysicsWalker(DirectObject.DirectObject):
     def reset(self):
         assert(self.debugPrint("reset()"))
 
+    def getVelocity(self):
+        return self.vel
+
     def enableAvatarControls(self):
         """
         Activate the arrow keys, etc.