} else if ( camera instanceof THREE.OrthographicCamera ) {
} else if ( camera instanceof THREE.OrthographicCamera ) {
- this.ray.origin.set( coords.x, coords.y, - 1 ).unproject( camera );
+ this.ray.origin.set( coords.x, coords.y, ( camera.near + camera.far ) / ( camera.near - camera.far ) ).unproject( camera ); // set origin in plane of camera