mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
strafe is now as fast as walk forward
This commit is contained in:
parent
b9795a77b5
commit
45fda2453a
@ -456,8 +456,10 @@ class GravityWalker(DirectObject.DirectObject):
|
|||||||
self.speed=(forward and self.avatarControlForwardSpeed or
|
self.speed=(forward and self.avatarControlForwardSpeed or
|
||||||
reverse and -self.avatarControlReverseSpeed)
|
reverse and -self.avatarControlReverseSpeed)
|
||||||
# Slide speed is a scaled down version of forward speed
|
# 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
|
self.slideSpeed=(slideLeft and -self.avatarControlForwardSpeed or
|
||||||
slideRight and self.avatarControlForwardSpeed) * 0.5
|
slideRight and self.avatarControlForwardSpeed)
|
||||||
self.rotationSpeed=not (slideLeft or slideRight) and (
|
self.rotationSpeed=not (slideLeft or slideRight) and (
|
||||||
(turnLeft and self.avatarControlRotateSpeed) or
|
(turnLeft and self.avatarControlRotateSpeed) or
|
||||||
(turnRight and -self.avatarControlRotateSpeed))
|
(turnRight and -self.avatarControlRotateSpeed))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user