소스 검색

Add terrainWidthExtents and terrainDepthExtents variables to unnamed numbers

Trevor Thai Kim Nguyen 8 년 전
부모
커밋
3c5f47fc71
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;