mirror of
https://forge.apps.education.fr/blender-edutech/ropy.git
synced 2024-01-27 08:23:20 +01:00
Bufix : colision sur la station et micro-temporisation lors des forages
This commit is contained in:
parent
d264df294a
commit
9746cac173
@ -189,7 +189,7 @@ def rp_avancer ():
|
|||||||
obj['stop'] = True
|
obj['stop'] = True
|
||||||
if [x1,y1] in scene.objects['Terrain']['map_tile_station']:
|
if [x1,y1] in scene.objects['Terrain']['map_tile_station']:
|
||||||
print ("Crash dans la station !")
|
print ("Crash dans la station !")
|
||||||
rover_colision_station ()
|
rover_colision_station (False)
|
||||||
obj['stop'] = True
|
obj['stop'] = True
|
||||||
if x1 < scene.objects['Terrain']['size'][0] or x1 > scene.objects['Terrain']['size'][2] or y1 < scene.objects['Terrain']['size'][1] or y1 > scene.objects['Terrain']['size'][3] :
|
if x1 < scene.objects['Terrain']['size'][0] or x1 > scene.objects['Terrain']['size'][2] or y1 < scene.objects['Terrain']['size'][1] or y1 > scene.objects['Terrain']['size'][3] :
|
||||||
print ("Sortie de carte !")
|
print ("Sortie de carte !")
|
||||||
@ -965,11 +965,13 @@ def rover_drill (x,y):
|
|||||||
scene.objects['Drill_tile-'+str(i)].worldPosition.x = x
|
scene.objects['Drill_tile-'+str(i)].worldPosition.x = x
|
||||||
scene.objects['Drill_tile-'+str(i)].worldPosition.y = y
|
scene.objects['Drill_tile-'+str(i)].worldPosition.y = y
|
||||||
scene.objects['Drill_tile-'+str(i)].setVisible(True,True)
|
scene.objects['Drill_tile-'+str(i)].setVisible(True,True)
|
||||||
|
rp_tempo (0.1)
|
||||||
break
|
break
|
||||||
for obj_i in scene.objects:
|
for obj_i in scene.objects:
|
||||||
if "tile_dirtHigh" in obj_i.name:
|
if "tile_dirtHigh" in obj_i.name:
|
||||||
if round(obj_i.worldPosition.x) == x and round(obj_i.worldPosition.y) == y :
|
if round(obj_i.worldPosition.x) == x and round(obj_i.worldPosition.y) == y :
|
||||||
obj_i.setVisible(False, True)
|
obj_i.setVisible(False, True)
|
||||||
|
rp_tempo (0.1)
|
||||||
|
|
||||||
if scene.objects['Commands']['speed'] < 10:
|
if scene.objects['Commands']['speed'] < 10:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user