From f882f5a715b7de06119834781f4d091912201b40 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Tue, 19 Jul 2005 22:27:50 +0000 Subject: [PATCH] more rotation friction --- direct/src/controls/ShipPilot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index 6b05bfa809..b8cc00ba79 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -662,7 +662,13 @@ class ShipPilot(PhysicsWalker.PhysicsWalker): self.currentTurning = self.ship.maxTurn elif self.currentTurning < -self.ship.maxTurn: self.currentTurning = -self.ship.maxTurn - self.currentTurning *= 0.9 + if turnLeft or turnRight: + mult = .9 + elif forward or reverse: + mult = .82 + else: + mult = .8 + self.currentTurning *= mult self.__rotationSpeed = self.currentTurning