mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
more rotation friction
This commit is contained in:
parent
969ca0205b
commit
f882f5a715
@ -662,7 +662,13 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
|||||||
self.currentTurning = self.ship.maxTurn
|
self.currentTurning = self.ship.maxTurn
|
||||||
elif self.currentTurning < -self.ship.maxTurn:
|
elif self.currentTurning < -self.ship.maxTurn:
|
||||||
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
|
self.__rotationSpeed = self.currentTurning
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user