OBJECT ANGLE Z This command will return a real value Z angle of the specified 3D object.
Syntax
    Return Float=OBJECT ANGLE Z(Object Number)
Parameters
    Object Number
Integer The object number
Returns
This command will return a real value z angle of the specified 3D object
Description
The parameter should be specified using an integer value.
Example Code
    backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0

    ObjectNumber=1

    load object "models\model.x",ObjectNumber

    if object exist(ObjectNumber)=1

    print "anglex:";object angle x(ObjectNumber)

    print "angley:";object angle y(ObjectNumber)

    print "anglez:";object angle z(ObjectNumber)

    endif

    while mouseclick()=0

    sync

    endwhile

    if object exist(ObjectNumber)=1 then delete object ObjectNumber

    end
See also
BASIC3D Commands Menu Index