hitTestView
Deprecated
Use view.hitTest(viewPosition)
Replace with
collisionSystem.hitTest(viewPosition)
Content copied to clipboard
Tests to see if a ray starting from the screen/camera position is hitting any nodes within the scene and returns a list of HitTestResults containing all of the nodes that were hit, sorted by distance.
Specify the camera/screen/view position where the hit ray will start from in screen coordinates.
Return
PickHitResult list for each nodes that was hit sorted by distance. Empty if no nodes were hit.
Parameters
xViewPercent
x view coordinate in percent (0 = left, 0.5 = center, 1 = right)
yViewPercent
y view coordinate in pixels (0 = top, 0.5 = center, 1 = bottom)