- Sort Posts
- 6 replies
- Last post
Get vumark position and rotation
May 29, 2017 - 6:42pm #7
Get vumark position and rotation
February 1, 2017 - 1:06pm #2
You can get the position and rotation of the marker from the active behaviours of the vumarkTracker.
See the snippet below. It is a smal extraction from the Vumark sample.
public class VuMarkHandler: MonoBehaviour { private VuMarkManager vuMarkManager; void start() { vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); } void Update() { foreach(var bhvr in vuMarkManager.GetActiveBehaviours()) { var position = bhvr.transform.position; var rotation = bhvr.transform.rotation; //hard work goes here } } }
Hello, seems a good solution for Unity. Is there any way without Unity only with the Android SDK? I can't find any way in the VuMarkRenderer to get the rotation for the Marker. Or maybe any idea where i can try to get it? Do i have to decompose the modelViewMatrix_Vuforia?
I'm sorry got it... it is in the Pose Matrix.