               mesh.updateMatrixWorld();
                }

                for ( i = 0; i < objects.children.length; i++) {
                    mesh = objects.children[i];

                    checkWallCollision(mesh);
                }

                for ( i = 0; i < objects.children.length; i++) {
                    mesh = objects.children[i];

                    checkObjectCollisions( mesh );
                }
            }

			/**
			 * Animate the scene and call rendering.
			 */