3D Interaction Functions
userPick
Simulates a user tap at the specified screen coordinates and, if enabled, triggers a camera refocus at that location. Reports success if either the tap or the refocus succeeds.
Name
Type
Description
Required/Optional
params
Object
Object containing screen position.
Required
params.x
Number
Horizontal screen position in pixels.
Required
params.y
Number
Vertical screen position in pixels.
Required
successCallback
Function
Called when the operation completes successfully.
Optional
errorCallback
Function
Called when the operation fails.
Optional
* 
The x and y coordinates are provided in screen space (pixels) and will be normalized relative to the current viewport size.
Was this helpful?