|
@@ -314,7 +314,6 @@ class GravityWalker(DirectObject.DirectObject):
|
|
|
turnRight = inputState.isSet("turnRight")
|
|
turnRight = inputState.isSet("turnRight")
|
|
|
slide = 0 #hack -- was: inputState.isSet("slide")
|
|
slide = 0 #hack -- was: inputState.isSet("slide")
|
|
|
jump = inputState.isSet("jump")
|
|
jump = inputState.isSet("jump")
|
|
|
- pie = inputState.isSet("pie")
|
|
|
|
|
# Determine what the speeds are based on the buttons:
|
|
# Determine what the speeds are based on the buttons:
|
|
|
self.speed=(forward and self.avatarControlForwardSpeed or
|
|
self.speed=(forward and self.avatarControlForwardSpeed or
|
|
|
reverse and -self.avatarControlReverseSpeed)
|
|
reverse and -self.avatarControlReverseSpeed)
|
|
@@ -326,13 +325,6 @@ class GravityWalker(DirectObject.DirectObject):
|
|
|
(turnLeft and self.avatarControlRotateSpeed) or
|
|
(turnLeft and self.avatarControlRotateSpeed) or
|
|
|
(turnRight and -self.avatarControlRotateSpeed))
|
|
(turnRight and -self.avatarControlRotateSpeed))
|
|
|
|
|
|
|
|
- # No moving allowed while throwing a pie.
|
|
|
|
|
- if pie:
|
|
|
|
|
- self.speed = 0
|
|
|
|
|
- self.slideSpeed = 0
|
|
|
|
|
- self.rotationSpeed = 0
|
|
|
|
|
- jump = 0
|
|
|
|
|
-
|
|
|
|
|
if self.wantDebugIndicator:
|
|
if self.wantDebugIndicator:
|
|
|
onScreenDebug.add("airborneHeight", self.lifter.getAirborneHeight()) #*#
|
|
onScreenDebug.add("airborneHeight", self.lifter.getAirborneHeight()) #*#
|
|
|
onScreenDebug.add("falling", self.falling) #*#
|
|
onScreenDebug.add("falling", self.falling) #*#
|