DarkBASIC Professional Help File

DX11 ADD LIMB

Creates a new limb from the given mesh and adds it to the specified parent limb belonging to the provided object.
Note that the given limb must belong to the given object or this function will fail!

Syntax

    Return Dword = DX11 ADD LIMB(object, parentLimb, mesh, shaderTechnique, [limbName])

Parameters

    object

> Dword
> The object to add the new limb to.

    parentLimb

> Dword
> The parent limb to add the newly created limb as a child to. Must belong to the above object.

    mesh

> Dword
> A mesh that will be used as the geometry data for the created limb.

    shaderTechnique

> Dword
> A shader technique to set to the created limb.

    [Optional] limbName

> String
> A name to set for the created limb.

Returns

The newly created limb, or 0 if it could not be created.

See also

LIMB Functions Menu
DX11 Function Categories