DarkBASIC Professional Help File

DX11 GET PICK VECTOR Z

Retrieves the Z coordinate of 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 the collision coordinate
from the last call which actually resulted in a collision (or 0.0 if there have been no such previous succesful call).

Syntax

    Return Float = DX11 GET PICK VECTOR Z()

Parameters

    This function does not take any parameters.

Returns

The Z coordinate of the intersection point (in world space) from the latest successful DX11 PICK OBJECT call.

See also

OBJECT Functions Menu
DX11 Function Categories