Browse Source

fixed reset after falling through floor.

Dave Schuyler 22 years ago
parent
commit
62d9c57f11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/PhysicsWalker.py

+ 1 - 1
direct/src/showbase/PhysicsWalker.py

@@ -230,7 +230,7 @@ class PhysicsWalker(DirectObject.DirectObject):
         # hack fix for falling through the floor:
         if contact==Vec3.zero() and self.avatarNodePath.getZ()<-50.0:
             # reset:
-            self.setPos(Vec3(0.0, 0.0, 20.0))
+            self.avatarNodePath.setPos(Vec3(0.0, 0.0, 20.0))
 
         # Determine what the speeds are based on the buttons:
         self.__speed=(self.__forwardButton and self.avatarControlForwardSpeed or