Fix moving left/right while looking down being very slow.

Needed to normalize the 'left' vector.
This commit is contained in:
David Vierra 2015-06-03 21:17:13 -10:00
parent 0d956c691d
commit 0c897f397c

View File

@ -97,7 +97,7 @@ class CameraKeyControls(object):
vector = self.worldView.cameraVector
point = self.worldView.centerPoint
up = (0, 1, 0)
left = vector.cross(up)
left = vector.cross(up).normalize()
if self.forward:
point = point + vector
if self.backward: