mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-06 20:03:16 -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:
|
# hack fix for falling through the floor:
|
||||||
if contact==Vec3.zero() and self.avatarNodePath.getZ()<-50.0:
|
if contact==Vec3.zero() and self.avatarNodePath.getZ()<-50.0:
|
||||||
# reset:
|
# 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:
|
# Determine what the speeds are based on the buttons:
|
||||||
self.__speed=(self.__forwardButton and self.avatarControlForwardSpeed or
|
self.__speed=(self.__forwardButton and self.avatarControlForwardSpeed or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user