Class HitTestResult


  • public class HitTestResult
    extends RayHit
    Stores the results of calls to Scene.hitTest and Scene.hitTestAll. Contains a node that was hit by the hit test, and associated information.
    • Constructor Detail

      • HitTestResult

        public HitTestResult()
    • Method Detail

      • setNode

        public void setNode​(@Nullable
                            Node node)
      • getNode

        @Nullable
        public Node getNode()
        The node that was hit by the hit test. Null when there is no hit.
        Returns:
        the hit node
      • reset

        public void reset()
        Overrides:
        reset in class RayHit