X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=antikythera;a=blobdiff_plain;f=src%2Fgear.h;h=e8796e90c56de7cdb1125a9c9d7b2d03a895c3f2;hp=281e77f2d19e62800656c3f20e9d607ed13e6a9c;hb=80bcc959131067cc774b85cc1f63e81d8b5a012a;hpb=84484521a697fe60f63bff077b9ba7475a45e54e diff --git a/src/gear.h b/src/gear.h index 281e77f..e8796e9 100644 --- a/src/gear.h +++ b/src/gear.h @@ -71,6 +71,9 @@ public: Gear(); ~Gear(); + void set_angular_offset(float offs); + float get_angular_offset() const; + // sets the supplied number of teeth, and calculates the radius // of the gear, to achieve the required tooth pitch void set_teeth(int nt, float tooth_pitch); @@ -79,6 +82,8 @@ public: const Vec3 &get_position() const; Vec3 get_global_position() const; // taking parent gear into account + Vec3 get_planar_position() const; // 2D pos of gear on its plane + void set_angle(float angle); float get_angle() const; @@ -90,6 +95,7 @@ public: float get_angular_pitch() const; void draw() const; + void draw_wire(float line_width = 1.0f) const; bool gen_mesh(); };