Syntax

dbPickScreen(ScreenX, ScreenY, Distance.f)

Description

This command will calculate a relative 3D coordinate from a 2D screen coordinate. The additional Distance parameter indicates how far into the screen the 3D coordinate is to be calculated. The resulting 3D coordinate is not a world position, but a relative 3D vector from the current camera position. The world coordinate can be obtained by adding the camera position to the resulting vector. The resulting vector is generated internally and can be retrieved using the dbGetPickVector command.

See Also

dbGetPickDistance, dbGetPickVector, dbObjectInScreen, dbObjectScreenX, dbObjectScreenY, dbPickObject