// of the gear, to achieve the required tooth pitch
void set_teeth(int nt, float tooth_pitch);
void set_axis(const Vec3 &axis);
+ const Vec3 &get_axis() const;
void set_position(const Vec3 &pos);
const Vec3 &get_position() const;
Vec3 get_global_position() const; // taking parent gear into account
sel_gear = 0;
}
}
+
+ if(bidx == 3 || bidx == 4) { /* wheel */
+ if(hover_gear) {
+ float dz = bidx == 4 ? 1 : -1;
+ hover_gear->set_position(hover_gear->get_position() + hover_gear->get_axis() * dz);
+ machine->invalidate_meshing();
+ }
+ }
}
static void motion(int x, int y)