mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
no-op placeOnFloor to fix opening book while swimming bug
This commit is contained in:
parent
fa3df4a74c
commit
90e07b77d5
@ -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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user