Normalized left for pointer lock controls

This commit is contained in:
Thomas Forgione 2018-04-24 14:11:49 +02:00
parent 8795c0aa17
commit f730824f03
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ impl Controls for FirstPersonControls {
self.phi.cos() * self.theta.sin(),
);
self.left = Vector3::new(0.0, 1.0, 0.0).cross_product(self.forward);
self.left = Vector3::new(0.0, 1.0, 0.0).cross_product(self.forward).normalized();
// Move the cursor back to the center
renderer