mirror of
https://forge.apps.education.fr/blender-edutech/blender-edutech-tutoriels.git
synced 2024-01-27 09:42:33 +01:00
Tutoriel 2 achevé
This commit is contained in:
parent
22a00e5bc4
commit
d259aed093
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user