C++ Java Unity
Unity Reference
SmartTerrain Class Referenceabstract
Inheritance diagram for SmartTerrain:
Tracker

Public Member Functions

abstract bool HitTest (Vector2 imageSpacePos, float defaultHeight, out HitTestResult hitTestResult)
 Performs a hit test on assumed surfaces from point on the image. The provided position must be in normalized image space coordinates. Default height is ignored on ARKit enabled devices. More...
 
abstract bool HitTest (Vector2 imageSpacePos, float defaultHeight, out HitTestResult[] hitTestResults)
 Performs a hit test on assumed surfaces from point on the image. The provided position must be in normalized image space coordinates. Default height is ignored on ARKit enabled devices. More...
 
- Public Member Functions inherited from Tracker
abstract bool Start ()
 Starts the Tracker More...
 
abstract void Stop ()
 Stops the Tracker More...
 

Additional Inherited Members

- Properties inherited from Tracker
virtual bool IsActive [get]
 If the Tracker is currently active More...
 

Member Function Documentation

abstract bool HitTest ( Vector2  imageSpacePos,
float  defaultHeight,
out HitTestResult  hitTestResult 
)
pure virtual

Performs a hit test on assumed surfaces from point on the image. The provided position must be in normalized image space coordinates. Default height is ignored on ARKit enabled devices.

Parameters
imageSpacePosThe screen position in normalized image space coordinates.
defaultHeightThe height at which the device is being held over the Ground Plane.
hitTestResultThe first Hit Test result in the list of results of intersecting with assumed surfaces.
Returns
Returns true if any surface was intersected
abstract bool HitTest ( Vector2  imageSpacePos,
float  defaultHeight,
out HitTestResult[]  hitTestResults 
)
pure virtual

Performs a hit test on assumed surfaces from point on the image. The provided position must be in normalized image space coordinates. Default height is ignored on ARKit enabled devices.

Parameters
imageSpacePosThe screen position in normalized image space coordinates.
defaultHeightThe height at which the device is being held over the Ground Plane.
hitTestResultsThe first Hit Test result in the list of results of intersecting with assumed surfaces.
Returns
Returns true if any surface was intersected