DarkBASIC Professional Help File

DX11 GET LIMB WORLD MATRIX

Retrieves the current world matrix of the specified limb.
The matrix will be copied to the provided matrix (which will also be returned by this function) or
it will be put into a temporary matrix which is returned and only valid throughout the current frame.
Take note that a limb's world matrix is relative to its parent limbs' world transforms as well as its object's world transform. You can combine these to get the actual
world space position of a limb by simply multiplying all involved world matrices.

Syntax

    Return Dword = DX11 GET LIMB WORLD MATRIX(limb, [matrixResult])

Parameters

    limb

> Dword
> The limb to get the current world matrix of.

    [Optional] matrixResult

> Dword
> The world matrix of the given limb will be copied here, or to a temporary matrix if this parameter is omitted.

Returns

Returns the matrixResult if it was provided, or the newly created temporary matrix holding the limb's world matrix otherwise.

See also

LIMB Functions Menu
DX11 Function Categories