raycaster.intersectObjects( objects.children );

                        if ( collisionResults.length > 0 && collisionResults[0].distance < directionVector.length() ) {
                            handleObjectsCollision( mesh, collisionResults[0] );
                            break;
                        }
                    }
                }
            }

            function handleObjectsCollision( meshA, collisionResult ) {

                var meshB = collisionResult.object;

      