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 SummaryConstructors Constructor Description HitTestResult()
 - 
Method SummaryAll 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.RayHitgetDistance, getPoint, set, setDistance, setPoint
 
- 
 
- 
- 
- 
Method Detail- 
setNodepublic 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
 
 - 
setpublic void set(HitTestResult other) 
 
- 
 
-