From d259aed0933a55219909cf84cc456684d267eb8b Mon Sep 17 00:00:00 2001 From: Philippe Roy Date: Sat, 22 Apr 2023 18:16:14 +0200 Subject: [PATCH] =?UTF-8?q?Tutoriel=202=20achev=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- labyrinthe/2-python/2-labyrinthe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/labyrinthe/2-python/2-labyrinthe.py b/labyrinthe/2-python/2-labyrinthe.py index 840b4c9..5bfa28b 100644 --- a/labyrinthe/2-python/2-labyrinthe.py +++ b/labyrinthe/2-python/2-labyrinthe.py @@ -81,7 +81,7 @@ def cycle(cont): if obj['z'] < -20 and scene.objects['Panneau victoire'].visible == False: print ("Chuuuu.....te") - # Replacement du plateau (horizontal) + # Replacement du plateau (tous les angles à 0 en plusieurs fois) while obj_plateau.worldOrientation.to_euler().x != 0 and obj_plateau.worldOrientation.to_euler().y !=0 and obj_plateau.worldOrientation.to_euler().z !=0 : obj_plateau.applyRotation((-obj_plateau.worldOrientation.to_euler().x, -obj_plateau.worldOrientation.to_euler().y, -obj_plateau.worldOrientation.to_euler().z), False) @@ -90,7 +90,7 @@ def cycle(cont): obj.worldAngularVelocity=(0, 0, 0) obj.worldPosition.x = obj['init_x'] obj.worldPosition.y = obj['init_y'] - obj.worldPosition.z = obj['init_z']+0.5 + obj.worldPosition.z = obj['init_z']+0.5 # On repose la bille # Victoire (colision de la bille avec l'arrivée) def victoire(cont):