DarkBASIC Professional Help File

DX11 GET CAMERA UP VECTOR

Retrieves the current up vector of the specified camera.
The up vector will be copied to the provided vector3 (which will also be returned by this function) or
it will be put into a temporary vector3 which is returned and only valid until the next call to DX11 SYNC.

Syntax

    Return Dword = DX11 GET CAMERA UP VECTOR(camera, [resultVector])

Parameters

    camera

> Dword
> The camera to get the current forward vector of.

    [Optional] resultVector

> Dword
> The camera's up vector will be copied here, or to a temporary vector3 if this parameter is omitted.

Returns

Returns the resultVector if it was provided, or the newly created temporary vector3 holding the camera's up vector otherwise.

See also

CAMERA Functions Menu
DX11 Function Categories