mirror of
https://forge.apps.education.fr/blender-edutech/ropy.git
synced 2024-01-27 08:23:20 +01:00
Bugfix : affichage du store incliné
This commit is contained in:
parent
e5fdf8348a
commit
526c9011bf
BIN
ropy-31.blend
BIN
ropy-31.blend
Binary file not shown.
@ -8,8 +8,8 @@
|
|||||||
<worldPosition.z>20.22315788269043</worldPosition.z>
|
<worldPosition.z>20.22315788269043</worldPosition.z>
|
||||||
</cam>
|
</cam>
|
||||||
<screen>
|
<screen>
|
||||||
<width>1280</width>
|
<width>960</width>
|
||||||
<height>720</height>
|
<height>540</height>
|
||||||
</screen>
|
</screen>
|
||||||
</config>
|
</config>
|
||||||
<mission>
|
<mission>
|
||||||
|
@ -38,6 +38,8 @@ ACTIVATE = bge.logic.KX_INPUT_ACTIVE
|
|||||||
|
|
||||||
def init():
|
def init():
|
||||||
|
|
||||||
|
print ("init")
|
||||||
|
|
||||||
# Mémorisation de la position de la tablette du store
|
# Mémorisation de la position de la tablette du store
|
||||||
scene.objects["Store"]['init_lx']=scene.objects["Store"].worldPosition.x
|
scene.objects["Store"]['init_lx']=scene.objects["Store"].worldPosition.x
|
||||||
scene.objects["Store"]['init_ly']=scene.objects["Store"].worldPosition.y
|
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
|
# Placement de la position de la tablette du store
|
||||||
scene.objects['Store'].worldScale = [0.01, 0.01, 0.01]
|
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, (-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+(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) # avant dernière version
|
||||||
scene.objects['Store'].applyRotation((math.pi/4+(2*math.pi)/180, 0, 0), True)
|
scene.objects['Store'].applyRotation((math.pi/2+(3*math.pi)/180, 0, 0), True) # dernière version
|
||||||
|
|
||||||
##
|
##
|
||||||
# Ouverture du store
|
# Ouverture du store
|
||||||
|
Loading…
Reference in New Issue
Block a user