void Scene::drawStacking() { int stackCount = 3; double S = activeObject()->val["stackability"]; Vec3d delta = activeObject()->vec["stacking_shift"]; // Draw stacking direction glColor4dv(Color(1, 1, 0, 0.8)); SimpleDraw::DrawArrowDirected(Vec3d(0.0), delta.normalized()); glPushMatrix(); glColor4dv(Color(0.45,0.72,0.43,0.8)); // Top glTranslated(delta[0],delta[1],delta[2]); activeObject()->simpleDraw(false); // Bottom delta *= -2; glTranslated(delta[0],delta[1],delta[2]); activeObject()->simpleDraw(false); glPopMatrix(); }