|
@@ -79,13 +79,13 @@
|
|
|
scene = new THREE.Scene();
|
|
|
|
|
|
controls = new THREE.OrbitControls(camera);
|
|
|
- controls.center.set( 0.0, 100.0, 0.0 );
|
|
|
+ controls.target.set( 0.0, 100.0, 0.0 );
|
|
|
controls.userPanSpeed = 100;
|
|
|
|
|
|
data = generateHeight( worldWidth, worldDepth );
|
|
|
|
|
|
- controls.center.y = data[ worldHalfWidth + worldHalfDepth * worldWidth ] + 500;
|
|
|
- camera.position.y = controls.center.y + 2000;
|
|
|
+ controls.target.y = data[ worldHalfWidth + worldHalfDepth * worldWidth ] + 500;
|
|
|
+ camera.position.y = controls.target.y + 2000;
|
|
|
camera.position.x = 2000;
|
|
|
|
|
|
var geometry = new THREE.PlaneBufferGeometry( 7500, 7500, worldWidth - 1, worldDepth - 1 );
|