X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fgear.cc;h=c916e765c389519e8405ce3059f220ef3ed0406e;hp=10e8bc89b1535a9ed0fa1f695ed798a1b015b86a;hb=b29d7193d03833109cfdda3ab576fe183efd8acf;hpb=014fccdee30291407985658e8cefd9be7dc9e9fa diff --git a/src/gear.cc b/src/gear.cc index 10e8bc8..c916e76 100644 --- a/src/gear.cc +++ b/src/gear.cc @@ -24,6 +24,17 @@ Gear::~Gear() delete mesh; } +void Gear::set_angular_offset(float offs) +{ + init_angle = offs; + xform_valid = false; +} + +float Gear::get_angular_offset() const +{ + return init_angle; +} + void Gear::set_teeth(int nt, float tooth_pitch) { float circ = tooth_pitch * nt; @@ -37,6 +48,11 @@ void Gear::set_axis(const Vec3 &axis) xform_valid = false; } +const Vec3 &Gear::get_axis() const +{ + return axis; +} + void Gear::set_position(const Vec3 &pos) { this->pos = pos;