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/robots/giboulee/view/robot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/simu/robots/giboulee/view/robot.py') diff --git a/host/simu/robots/giboulee/view/robot.py b/host/simu/robots/giboulee/view/robot.py index ab1ffc6d..42ebe6fb 100644 --- a/host/simu/robots/giboulee/view/robot.py +++ b/host/simu/robots/giboulee/view/robot.py @@ -42,8 +42,8 @@ class Robot (simu.inter.drawable.Drawable): """Draw the robot.""" self.reset () if self.pos is not None: - self.trans_rotate (self.angle) self.trans_translate (self.pos) + self.trans_rotate (self.angle) # Draw robot body. self.draw_polygon ((115, 30), (170, 85), (150, 127), (130, 145), (-25, 200), (-70, 200), (-70, -200), (-25, -200), -- cgit v1.2.3