- Sort Posts
- 3 replies
- Last post
Get dimensions of an object
May 11, 2016 - 12:20am #3
Get dimensions of an object
May 11, 2016 - 3:54am #1
You can use the Vuforia C++ API, even if most of your code is written in Obj-C.
As you can also see in the Vuforia Sample Apps, the iOS sample code is written in Objective-C and C++, cause the Vuforia API for iOS is based on C++;
you can mix C++ and Objective-C code in your project.
The Trackable classes expose methods to obtain the size of the Trackable (Image Target, Object Target or other);
For example, if you are using Unity, you'll probably want to use the GetSize() method of the ObjectTarget class:
https://developer.vuforia.com/library/sites/default/api/unity/interfaceVuforia_1_1ObjectTarget.html
See also the complete API reference for Unity, C++ and Java:
https://developer.vuforia.com/library/sites/default/api/unity/index.html
https://developer.vuforia.com/library/sites/default/api/cpp/index.html
https://developer.vuforia.com/library/sites/default/api/java/index.html