public void renderTrail(float[] color) {
		if (body.hasTrail){
			GL11.glBegin(GL11.GL_LINE_STRIP);
			GL11.glVertex3d(body.position.x, body.position.y, body.position.z);
			for (int i = 0; i < path.length; i++) {
				GL11.glColor4f(color[0], color[1], color[2],
						(float) Math.pow((1.0 - ((double) i / path.length)), .5));
				if (body.parent == null) {
					GL11.glVertex3d(path[i].x, path[i].y, path[i].z);
				} else {
					GL11.glVertex3d(path[i].x + body.parent.position.x, path[i].y
							+ body.parent.position.y, path[i].z
							+ body.parent.position.z);
				}
			}
			GL11.glEnd();
		}
	}