pick

Casts a single ray into the scene at raster pixel coordinate point, with (0,0) in the bottom left corner. Returns an array that contains information about any objects hit by the ray. Only objects that have the pickable attribute set are considered. If the optional argument "size" is provided then the pick occurs over a rectangle of that size centered at "point".

References:

arguments

return value

Pick_result[]

An array of pick results containing data about all objects hit by the cast ray. The array is ordered closest to furtherest pick result. Each pick result contains the name of the object hit, the world position of that object and the names of all the elements on the path from the root group to the picked object.

groups