Updating code to use Raycaster.setFromCamera() method

See #5587.