float angle; // current angle of the gear
int nteeth; // number of teeth
+ float tooth_pitch;
float radius; // total radius of the gear, including teeth
float teeth_length; // how far teeth extend past the radius
float bevel; // bevel size
+ // visual surface properties
+ Vec3 color;
+ float roughness;
+ bool metallic;
+
Gear *supergear;
std::vector<Gear*> subgears;
std::vector<GearPin> pins;
// 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);
+ void set_teeth(int nt, float tooth_pitch = 0.0f);
void set_axis(const Vec3 &axis);
const Vec3 &get_axis() const;
void set_position(const Vec3 &pos);