Jelajahi Sumber

Added missing 'used but not declared' heightMax property.

sole 13 tahun lalu
induk
melakukan
5e0741b528
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      src/extras/controls/FirstPersonControls.js

+ 1 - 0
src/extras/controls/FirstPersonControls.js

@@ -24,6 +24,7 @@ THREE.FirstPersonControls = function ( object, domElement ) {
 	this.heightSpeed = false;
 	this.heightCoef = 1.0;
 	this.heightMin = 0.0;
+	this.heightMax = 1.0;
 
 	this.constrainVertical = false;
 	this.verticalMin = 0;

粤ICP备19079148号