Bugfix : affichage du store incliné

This commit is contained in:
Philippe Roy 2022-11-26 02:13:06 +01:00
parent e5fdf8348a
commit 526c9011bf
3 changed files with 7 additions and 5 deletions

Binary file not shown.

View File

@ -8,8 +8,8 @@
<worldPosition.z>20.22315788269043</worldPosition.z>
</cam>
<screen>
<width>1280</width>
<height>720</height>
<width>960</width>
<height>540</height>
</screen>
</config>
<mission>

View File

@ -38,6 +38,8 @@ ACTIVATE = bge.logic.KX_INPUT_ACTIVE
def init():
print ("init")
# Mémorisation de la position de la tablette du store
scene.objects["Store"]['init_lx']=scene.objects["Store"].worldPosition.x
scene.objects["Store"]['init_ly']=scene.objects["Store"].worldPosition.y
@ -46,10 +48,10 @@ def init():
# Placement de la position de la tablette du store
scene.objects['Store'].worldScale = [0.01, 0.01, 0.01]
# applyRotationTo(scene.objects['Store'], None, (-0.2*math.pi)/180, (115*math.pi)/180, False)
applyRotationTo(scene.objects['Store'], None, (-2.38*math.pi)/180, (100*math.pi)/180, False)
applyRotationTo(scene.objects['Store'], None, (-2.38*math.pi)/180, (100*math.pi)/180, False) # dernière version
# scene.objects['Store'].applyRotation((math.pi/2+(0.59189*math.pi)/180, 0, 0), True)
# scene.objects['Store'].applyRotation((math.pi/2+(3*math.pi)/180, 0, 0), True)
scene.objects['Store'].applyRotation((math.pi/4+(2*math.pi)/180, 0, 0), True)
# scene.objects['Store'].applyRotation((math.pi/4+(2*math.pi)/180, 0, 0), True) # avant dernière version
scene.objects['Store'].applyRotation((math.pi/2+(3*math.pi)/180, 0, 0), True) # dernière version
##
# Ouverture du store