Package com.google.ar.sceneform
Class HitTestResult
- java.lang.Object
-
- com.google.ar.sceneform.collision.RayHit
-
- com.google.ar.sceneform.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 Summary
Constructors Constructor Description HitTestResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodegetNode()The node that was hit by the hit test.voidreset()voidset(HitTestResult other)voidsetNode(Node node)-
Methods inherited from class com.google.ar.sceneform.collision.RayHit
getDistance, getPoint, set, setDistance, setPoint
-
-
-
-
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
-
set
public void set(HitTestResult other)
-
-