DarkBASIC Professional Help File

DX11 GET PICK DISTANCE

Retrieves the distance from the main (screen) camera's near plane to the the intersection point from the last successful call to DX11 PICK OBJECT.
Note that if the last pick object call was unsuccessful (returned 0.0), this function will return 0.0.
This function will return the same value as the latest call to DX11 PICK OBJECT.

Syntax

    Return Float = DX11 GET PICK DISTANCE()

Parameters

    This function does not take any parameters.

Returns

The distance from the camera's near plane to the intersection point from the last DX11 PICK OBJECT call.

See also

OBJECT Functions Menu
DX11 Function Categories