LIMB DIRECTION Z This command will return the real number world Z angle of the specified limb of the 3D object.
Syntax
    Return Float=LIMB DIRECTION Z(Object Number, Limb Number)
Parameters
    Object Number
Integer The object number
    Limb Number
Integer The limb number
Returns
This command will return the real number world z angle of the specified limb of the 3D object
Description
Specifying a limb number of zero provides access to the objects own root data, and should not normally be used in this way. The parameters should be specified using integer values.
Example Code
    backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0

    ObjectNumber=1

    LimbNumber=1

    load object "models\model.x",ObjectNumber

    print "LIMBS"

    print "exist:";limb exist(ObjectNumber, LimbNumber)

    if limb exist(ObjectNumber, LimbNumber)=1

    print "directionx:";limb direction x(ObjectNumber, LimbNumber)

    print "directiony:";limb direction y(ObjectNumber, LimbNumber)

    print "directionz:";limb direction z(ObjectNumber, LimbNumber)

    endif

    while mouseclick()=0

    sync

    endwhile

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

    end
See also
BASIC3D Commands Menu Index