CREATES AN ACTOR (MD2 FORMATTED 3D OBJECT) AND GIVES IT THE NUMBER N AS REFERENCE
ACTION
The command 3D_ACTOR creates an actor, that is a 3D object structured in MD2 format and gives it a number N.
The number N is used to designate the actor.
The center of the actor is placed in (0,0,0) : the center of the 3D world (SCENE3D).
The color of the actor is gray at creation and can be modified by the command 3D_COLOR.
The actor can be moved, rotated, scaled, colored, textured, deleted, hidden, showed... with the appropriated commands.
Remark 1: by default, the actor is created on the first created SCENE3D, but another SCENE3D can be used. For that, create a new SCENE3D, and send it all the commands by 3D_TARGET_IS before creating the actor.
Remark 2: after creating an actor, a file (in MD2 format) can the be loaded in the 3D object by command 3D_LOAD_OBJECT. It can be then normally handled as any 3D object.
SYNTAX:
3D_ACTOR N
USE ERROR EXAMPLE
rem create a 3D world
scene3d 1
rem create an actor
3d_actor 1
rem load a file in the actor
3d_load_object 1,"zombi.md2"
3D_ACTOR
3D_ACTOR N
SEE ALSO
3D_LOAD_OBJECT
3D_COLOR
3D_DELETE
3D_DELETE_ALL
3D_LOAD_TEXTURE
3D_HIDE
3D_SHOW
3D_TARGET_IS
3D_X_POSITION
3D_Y_POSITION
3D_Z_POSITION
3D_X_ROTATE
3D_Y_ROTATE
3D_Z_ROTATE
3D_X_SCALE
3D_Y_SCALE
3D_Z_SCALE