summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 78050f3..1614479 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -309,10 +309,10 @@ Redisplay(void)
transformations[0] = model;
for (unsigned i = 1; i < (ARRAY_SIZE(transformations) - 1); i++) {
- /* FINISHME: Generate forward-kinematic transformations for
- * FINISHME: each of the bones.
- */
- transformations[i] = model;
+ transformations[i] = transformations[i - 1] *
+ gluTranslate(0.0f, 2.0f * i, 0.0f) *
+ gluRotate(GLUvec4(1.0f, 0.0f, 0.0f, 0.0f), angle) *
+ gluTranslate(0.0f, -2.0f * i, 0.0f);
}
transformations[5] = transformations[4];