LIMB OFFSET Y This command will return a real number Y offset of the specified limb of the 3D object.
Syntax
    Return Float=LIMB OFFSET Y(Object Number, Limb Number)
Parameters
    Object Number
Integer The object number
    Limb Number
Integer The limb number
Returns
This command will return a real number y offset 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 position of the limb is always offset from the positional coordinates of the 3D object itself.
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 "offsetx:";limb offset x(ObjectNumber, LimbNumber)

    print "offsety:";limb offset y(ObjectNumber, LimbNumber)

    print "offsetz:";limb offset 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