hitTest
Deprecated
Use collisionSystem.hitTest(xPx, yPx)
Replace with
collisionSystem.hitTest(xPx, yPx)
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
x view coordinate in pixels
y view coordinate in pixels
Deprecated
Use view.hitTest(motionEvent)
Replace with
collisionSystem.hitTest(motionEvent)
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
view motion event
Deprecated
Use collisionSystem.hitTest(ray)
Replace with
collisionSystem.hitTest(ray)
Tests to see if a ray is hitting any nodes within the scene and returns a list of HitTestResults containing all of the nodes that were hit, sorted by distance.
Return
PickHitResult list for each nodes that was hit sorted by distance. Empty if no nodes were hit.
Parameters
The ray to use for the test.