ROTATE LIMB This command will change the rotation of the specified limb within the 3D object.
Syntax
    ROTATE LIMB Object Number, Limb Number, XAngle, YAngle, ZAngle
    ROTATE LIMB Object Number, Limb Number, XAngle, YAngle, ZAngle, Bounds Flag
Parameters
    Object Number
Integer The object number
    Limb Number
Integer The limb number
    XAngle
Float The x angle of the limb
    YAngle
Float The y angle of the limb
    ZAngle
Float The z angle of the limb
    Bounds Flag
Integer Specify a value of zero to disable, and a value of one to enable.
Returns
This command does not return a value.
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 object and limb parameters should be specified using integer values. The offset parameters should be specified using real numbers.
Example Code
    sync on : sync rate 0 : hide mouse:cls 0

    MeshNumber=1

    LimbNumber=1

    ObjectNumber=1

    load mesh "mesh.x",MeshNumber

    make object sphere ObjectNumber,10

    color object ObjectNumber,rgb(0,255,0)

    add limb ObjectNumber,LimbNumber,MeshNumber

    link limb ObjectNumber,0,LimbNumber

    offset limb ObjectNumber,1,8,0,0

    while mouseclick()=0

    rotate limb ObjectNumber,LimbNumber,0,wrapvalue(limb angle y(ObjectNumber,LimbNumber)+1),0

    sync

    endwhile

    delete mesh MeshNumber

    delete object ObjectNumber

    end
See also
BASIC3D Commands Menu Index