From 9c9f35753489cba5a61816104ac294857be20941 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 29 Apr 2011 20:35:20 +0200 Subject: 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. --- host/simu/view/table_eurobot2009.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/simu/view') diff --git a/host/simu/view/table_eurobot2009.py b/host/simu/view/table_eurobot2009.py index 5e2d6db5..282b25a5 100644 --- a/host/simu/view/table_eurobot2009.py +++ b/host/simu/view/table_eurobot2009.py @@ -113,8 +113,8 @@ class Table (Drawable): ((3000 - 40, 1050 + ds), pi, GREEN), ): dtm = TransMatrix () - dtm.rotate (dangle) dtm.translate (dpos) + dtm.rotate (dangle) if dpos[1] == 40: a = 55 else: -- cgit v1.2.3