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