changeset 128:3e74269c9190

remove prints
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Wed, 09 Jul 2014 18:59:20 +0200
parents cfb0400a94e8
children 62a59cad5ccd
files kubik.py
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/kubik.py	Wed Jul 09 18:57:48 2014 +0200
+++ b/kubik.py	Wed Jul 09 18:59:20 2014 +0200
@@ -111,16 +111,12 @@
         """Rotate the leg around the center of the body horizontally."""
         radians = math.radians(degrees)
         x, y, z = self.position
-        print 'starting pos: %r, %r' % (x, y)
         bx, by = self.base[0] + x, self.base[1] - y * self.y_direction
         r = _length(bx, by)
         a = math.atan2(bx, by)
-        print 'arc coords: %r, %r' % (math.degrees(a), r)
-        print 'move by: %r' % radians
-        x = r * math.sin(a + radians) - self.base[0]
-        y = r * math.cos(a + radians) - self.base[1]
-        print 'end pos: %r, %r' % (x, y)
-        self.move_to((x, -y * self.y_direction, None))
+        rx = r * math.sin(a + radians) - self.base[0]
+        ry = r * math.cos(a + radians) - self.base[1]
+        self.move_to((rx, -ry * self.y_direction, None))
 
     def update(self):
         hip, knee, ankle = self._inverse_kinematics(self.position)