mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fixed reset after falling through floor.
This commit is contained in:
parent
6afb9a87ab
commit
62d9c57f11
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user