Explorar o código

Add terrainWidthExtents and terrainDepthExtents variables to unnamed numbers

Trevor Thai Kim Nguyen %!s(int64=8) %!d(string=hai) anos
pai
achega
3c5f47fc71
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;