summaryrefslogtreecommitdiff
path: root/host/inter
diff options
context:
space:
mode:
authorNicolas Schodet2011-04-29 20:35:20 +0200
committerNicolas Schodet2011-04-29 20:35:20 +0200
commit9c9f35753489cba5a61816104ac294857be20941 (patch)
treeba36dbe8fda70ca491fc499128c6f317c532cbc7 /host/inter
parentde2a1e81eef5054725ae218afaf51dc8e06dedd0 (diff)
host/simu: transpose transformation matrix, reverse transformation order
This is better because transformations can be built incrementally from the container to the contained. This use the same semantic as OpenGL.
Diffstat (limited to 'host/inter')
-rw-r--r--host/inter/inter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/inter/inter.py b/host/inter/inter.py
index 3f1effd4..f097f955 100644
--- a/host/inter/inter.py
+++ b/host/inter/inter.py
@@ -33,8 +33,8 @@ class Robot (Drawable):
def draw (self):
self.reset ()
if self.angle is not None:
- self.trans_rotate (self.angle)
self.trans_translate (self.pos)
+ self.trans_rotate (self.angle)
self.draw_polygon ((115, 30), (170, 85), (150, 127), (130, 145),
(-25, 200), (-70, 200), (-70, -200), (-25, -200),
(130, -145), (150, -127), (170, -85), (115, -30))