C++ Java Unity
Unity Reference
AreaTarget Interface Reference

A trackable that represents a AreaTarget object More...

Inheritance diagram for AreaTarget:
Trackable

Public Member Functions

OrientedBoundingBox3D GetBoundingBox ()
 Returns the bounding box of the target (in 3D scene units). More...
 
Vector3 GetSize ()
 Returns the size (width, height and depth) of the area target More...
 
bool SetExternalPosition (Vector2 position, float radius)
 Set approximate position within the target from an external localization source. More...
 

Additional Inherited Members

- Properties inherited from Trackable
int ID [get]
 The runtime Id of the Trackable More...
 
string Name [get]
 The name of the Trackable More...
 

Detailed Description

A trackable that represents a AreaTarget object

Member Function Documentation

OrientedBoundingBox3D GetBoundingBox ( )

Returns the bounding box of the target (in 3D scene units).

Vector3 GetSize ( )

Returns the size (width, height and depth) of the area target

bool SetExternalPosition ( Vector2  position,
float  radius 
)

Set approximate position within the target from an external localization source.

Parameters
positionPosition (x, z) in target coordinate system (which is y-up)
radiusUncertainty of the position in meters. Must be positive
Returns
true on success, false on failure