strafe is now as fast as walk forward

This commit is contained in:
Joe Shochet 2006-06-07 16:56:34 +00:00
parent b9795a77b5
commit 45fda2453a

View File

@ -456,8 +456,10 @@ class GravityWalker(DirectObject.DirectObject):
self.speed=(forward and self.avatarControlForwardSpeed or
reverse and -self.avatarControlReverseSpeed)
# Slide speed is a scaled down version of forward speed
# Note: you can multiply a factor in here if you want slide to
# be slower than normal walk/run. Let's try full speed.
self.slideSpeed=(slideLeft and -self.avatarControlForwardSpeed or
slideRight and self.avatarControlForwardSpeed) * 0.5
slideRight and self.avatarControlForwardSpeed)
self.rotationSpeed=not (slideLeft or slideRight) and (
(turnLeft and self.avatarControlRotateSpeed) or
(turnRight and -self.avatarControlRotateSpeed))