diff --git a/examples/webgl_materials_car.html b/examples/webgl_materials_car.html index 52e4892b0098f5..a1e8c7a241e6b2 100644 --- a/examples/webgl_materials_car.html +++ b/examples/webgl_materials_car.html @@ -88,6 +88,8 @@ camera.position.set( 4.25, 1.4, - 4.5 ); controls = new OrbitControls( camera, container ); + controls.enableDamping = true; + controls.maxDistance = 9; controls.target.set( 0, 0.5, 0 ); controls.update(); @@ -197,6 +199,8 @@ function render() { + controls.update(); + const time = - performance.now() / 1000; for ( let i = 0; i < wheels.length; i ++ ) {