Log in or register to post comments

DeviceTrackableResult in Unity?

August 7, 2019 - 8:05am #1

Hi,

What is the class equivalent to DeviceTrackableResult (C++ API) in Unity API

I am using PositionalDeviceTracker and I would like to get the 6dof pose of my device in realtime.

In the link below, it's done with C++ API 

Thank you,

https://library.vuforia.com/content/vuforia-library/en/articles/Solution/tracking-state.html

(Handling of STATUS and STATUS_INFORMATION when Using the PositionalDeviceTracker)

DeviceTrackableResult in Unity?

August 8, 2019 - 8:41am #3

Hello @imenebelkacemi,

If I understand your question correctly, I believe the Unity API you're looking for is TrackableBehaviour: https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1TrackableBehaviour.html

The use of this API is demonstated in our Core Samples, available for free on the Unity Asset Store. It is used in several scripts, but here are some good examples:

/Assets/SamplesResources/SceneAssets/GroundPlane/Scripts/GroundPlaneUI.cs

/Assets/SamplesResources/SceneAssets/GroundPlane/Scripts/PlaneManager.cs

Thanks,

Vuforia Engine Support

DeviceTrackableResult in Unity?

August 8, 2019 - 2:54am #2

Hi,

Unfortunately there is no 1:1 for Unity and I believe though a combination of TrackableBehaviour and DeviceTracker you can achieve it.

We have all the API information for C++, Java and Unity stored under following links:

C++: https://library.vuforia.com/content/vuforia-library/en/reference/cpp/index.html

Java: https://library.vuforia.com/content/vuforia-library/en/reference/java/index.html

Unity: https://library.vuforia.com/content/vuforia-library/en/reference/unity/index.html

Thank you.

Vuforia Engine Support

Log in or register to post comments