MOVE OBJECT This command will move the specified 3D object in 3D space.
Syntax
    MOVE OBJECT Object Number, Speed
Parameters
    Object Number
Integer The object number
    Speed
Float The amout of steps to move from current position
Returns
This command does not return a value.
Description
The command uses the current direction of the object and moves it using the specified step value. In order to see your 3D object, you must ensure the camera is pointing in the right direction and that both camera and 3D object are within 5000 units from each other. The object number should be specified using an integer value. The step value should be specified using a real number.
Example Code
    sync on : sync rate 0 : hide mouse:cls 0

    ObjectNumber=1

    SecondObject=2

    load object "model.x",ObjectNumber

    load object "model.x",SecondObject

    rotate object ObjectNumber, 270, 0, 0

    fix object pivot ObjectNumber

    point object ObjectNumber,0,0,0

    position object ObjectNumber, 0,0,0

    while mouseclick()=0

    if spacekey()=1 then move object ObjectNumber,1

    if leftkey()=1 then turn object left ObjectNumber,1

    if rightkey()=1 then turn object right ObjectNumber,1

    sync

    endwhile

    delete object ObjectNumber

    delete object SecondObject

    end
See also
BASIC3D Commands Menu Index