mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
fixed getZ call
This commit is contained in:
parent
20d1b050cc
commit
67e7d1404a
@ -141,7 +141,7 @@ class NonPhysicsWalker(DirectObject.DirectObject):
|
||||
current walker.
|
||||
"""
|
||||
self.oneTimeCollide()
|
||||
self.setZ(self.getZ()-self.getAirborneHeight())
|
||||
self.avatarNodePath.setZ(self.avatarNodePath.getZ()-self.getAirborneHeight())
|
||||
|
||||
def oneTimeCollide(self):
|
||||
"""
|
||||
|
@ -382,7 +382,7 @@ class PhysicsWalker(DirectObject.DirectObject):
|
||||
current walker.
|
||||
"""
|
||||
self.oneTimeCollide()
|
||||
self.setZ(self.getZ()-self.getAirborneHeight())
|
||||
self.avatarNodePath.setZ(self.avatarNodePath.getZ()-self.getAirborneHeight())
|
||||
|
||||
def oneTimeCollide(self):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user