From 90e07b77d5fd4fd708fd5bd5190a6d92ef65f42d Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Wed, 17 Dec 2003 22:43:21 +0000 Subject: [PATCH] no-op placeOnFloor to fix opening book while swimming bug --- direct/src/showbase/NonPhysicsWalker.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/NonPhysicsWalker.py b/direct/src/showbase/NonPhysicsWalker.py index 8ab6f17b35..3e48ba5124 100755 --- a/direct/src/showbase/NonPhysicsWalker.py +++ b/direct/src/showbase/NonPhysicsWalker.py @@ -140,8 +140,12 @@ class NonPhysicsWalker(DirectObject.DirectObject): For example, this is useful when switching away from the current walker. """ - self.oneTimeCollide() - self.avatarNodePath.setZ(self.avatarNodePath.getZ()-self.getAirborneHeight()) + # With these on, getAirborneHeight is not returning the correct value so + # when we open our book while swimming we pop down underneath the ground + # self.oneTimeCollide() + # self.avatarNodePath.setZ(self.avatarNodePath.getZ()-self.getAirborneHeight()) + # Since this is the non physics walker - wont they already be on the ground? + return def oneTimeCollide(self): """