ROTATES THE 3D OBJECT NUMBER N OF X DEGREES AROUND ITS X AXIS
ACTION
The command 3D_X_ROTATE N,X turns the 3D object designated by its number N, of an angle of X degrees, around its own X axis, in relation to its initial position.
The own X axis of the 3D object is the axis of object which was parallel to the 3D world X axis when the 3D object was created.
The pointing direction of the 3D object number N is changed.
Recall: at creation, the pointing direction of a 3D object is the vector (0,0,1). The pointing direction is changed by the rotation commands on the 3D object: 3D_X_ROTATE, 3D_Y_ROTATE, 3D_Z_ROTATE and by the pointing at a 3D object command: 3D_POINT_OBJECT.
SYNTAX:
3D_X_ROTATE N,X
USE ERROR EXAMPLE
rem create a 3D world
scene3d 1
rem resize the 3D world
width 1,300:height 1,300
rem place the camera
cam_position 5,10,10
rem create a cube
3d_cube 1,1.5
rem wait for 1 second
wait 1000
rem rotate it of 45 degrees around its own X axis
3d_x_rotate 1,45
3D_X_ROTATE
3D_X_ROTATE N,X
SEE ALSO
3D_Y_ROTATE
3D_Z_ROTATE