Browse Source

Merge pull request #11998 from trevortknguyen/dev

Clarify variables in physics/terrain example to be more self documenting
Mr.doob 8 năm trước cách đây
mục cha
commit
6d16a26c89
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/webgl_physics_terrain.html

+ 1 - 1
examples/webgl_physics_terrain.html

@@ -128,7 +128,7 @@
 
 						controls = new THREE.OrbitControls( camera );
 
-						var geometry = new THREE.PlaneBufferGeometry( 100, 100, terrainWidth - 1, terrainDepth - 1 );
+						var geometry = new THREE.PlaneBufferGeometry( terrainWidthExtents, terrainDepthExtents, terrainWidth - 1, terrainDepth - 1 );
 						geometry.rotateX( -Math.PI / 2 );
 
 						var vertices = geometry.attributes.position.array;