Scroll mouse in obj example

Hi! I manage to to mofify the obj example ( with another object (house), but would like to add a function so that with the wheel of the mouse the camera moves back/forward. How can I do that?

One solution: You could add an instance of THREE.OrbitControls like this.

<script src="js/controls/OrbitControls.js"></script>
// in your code
var controls = new THREE.OrbitControls( camera, renderer.domElement );

Full example:

Thank you - that did the trick!