DarkBASIC Professional Help File

DX11 GLUE LIMB TO OBJECT

Attaches the given source limb to the specified target object.
This means that any movement / rotation of the source limb will be relative to that of the target object, ie. when the target's translation changes, so does the source's.
3D entities (cameras, limbs, limbs) can be glued together in arbitrarily complex hierarchies such that for example camera A is relative to limb B which in turn is relative to limb C and so on,
but each individual entity may only be glued to one or zero "parent" entities each (the same parent entity can be used for an arbitrary amount of "child" entities however).
Take note that if you do not undo a glueing operation before deleting the target entity, the target will remain until everything that is glued to it is removed, either
by unglueing it or by deleting all entities glued onto it.

Syntax

    DX11 GLUE LIMB TO OBJECT source, target

Parameters

    source

> Dword
> The limb to attach to the target limb.

    target

> Dword
> The objerct to which transform the source limb is attached. If set to nullptr, or zero, the function will work the same as DX11 UNGLUE LIMB.

Returns

This function does not return a value.

See also

LIMB Functions Menu
DX11 Function Categories