Normalized left for pointer lock controls
This commit is contained in:
parent
8795c0aa17
commit
f730824f03
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue