public void writeEnvironment(Document document) {
		Element gravity = document.createElement("gravity");
		gravity.appendChild(document
				.createTextNode(write3Tuple(physicsController.getWorld()
						.getGravity())));
		document.getFirstChild().appendChild(gravity);
	}