DarkBASIC Professional Help File

DX11 GLUE CAMERA TO OBJECT

Attaches the given source camera to the specified target object.
This means that any movement / rotation of the source camera will be relative to that of the target object, ie. when the target's translation changes, so does the source's.
3D entities (cameras, objects, limbs) can be glued together in arbitrarily complex hierarchies such that for example camera A is relative to object 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 CAMERA TO OBJECT source, target

Parameters

    source

> Dword
> The camera to attach to the target object.

    target

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

Returns

This function does not return a value.

See also

CAMERA Functions Menu
DX11 Function Categories