diff --git a/examples/webgl_physics_terrain.html b/examples/webgl_physics_terrain.html index c75c11010a47e42718edb8fe25e5e1c997eefb1c..284aeed107eea1d5650e792a3a55b1d2f1246f86 100644 --- a/examples/webgl_physics_terrain.html +++ b/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;