fixed reset after falling through floor.

This commit is contained in:
Dave Schuyler 2003-09-27 02:39:34 +00:00
parent 6afb9a87ab
commit 62d9c57f11

View File

@ -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