ArcBasicDocs

CameraPick

Picks the entity under a screen point.

CameraPick ( camera,viewport_x#,viewport_y# )

Parameters

camera
the camera's handle.
viewport_x#
the point's position across the display, in pixels.
viewport_y#
its position down.

Description

Finds the nearest pickable entity under a point on the display, as seen by a camera, and gives back its handle, or 0 if there is nothing there. Use it with MouseX and MouseY to click on things in the 3D world. Read where it was hit with PickedX and the other picked commands.

See also