Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'model.py')
-rw-r--r--model.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/model.py b/model.py
index b031c89..479af62 100644
--- a/model.py
+++ b/model.py
@@ -44,6 +44,13 @@ class KeyFrame:
self.joints = None
self.scaled_joints = None
+ def move(self, dx):
+ if self.scaled_joints:
+ for jname in self.scaled_joints:
+ (jx, jy) = self.scaled_joints[jname]
+ self.scaled_joints[jname] = (jx+dx, jy)
+ self.x += dx
+
def save(filename):
out = []