POINT_POSITION X,Y,Z
MODIFIE LA POSITION EN (X,Y,Z) DU POINT VISÉ PAR LA CAMÉRA 3D
ACTION
La commande POINT_POSITION X,Y,Z modifie la position du point visé par la caméra 3D appartenant au SCENE3D cible (premier SCENE3D créé ou SCENE3D sélectionné par 3D_TARGET_IS N) et le place à la position (X,Y,Z).
Par défaut, la caméra 3D est placée à la position (0,0,5), vise le point (0,0,0) et le SCENE3D cible est le premier SCENE3D créé.
SYNTAXE : POINT_POSITION X,Y,Z
- X = nouvelle position en X. X peut être un nombre entier ou réel.
- Y = nouvelle position en Y. Y peut être un nombre entier ou réel.
- Z = nouvelle position en Z. Z peut être un nombre entier ou réel.
UTILISATION
- La commande POINT_POSITION est utilisée pour déplacer le point visé par la caméra 3D.
ERREUR
- Si X ou Y ou Z n'est pas une expression correcte
- Si aucun SCENE3D n'est créé
EXEMPLE
POINT_POSITION.bas
' créer un monde 3D
scene3d 1
' créer un objet 3D (une théière)
3d_teapot 1
' positionner le point visé par la caméra 3D
point_x_position 0.5,0.5,0.5
EN RAPPORT