Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

AR Kit 1.5 Track Image

$
0
0
With the latest AR Kit 1.5 the ability to find an image and get it's position, rotation etc has been added. I manage to have it find the image and place a model on it but if I move the image the model doesn't update its position/rotation. I have the following function as a callback on `UnityARSessionNativeInterface.ARImageAnchorUpdatedEvent` void UpdateImageAnchor(ARImageAnchor arImageAnchor) { Debug.Log ("image anchor updated"); if (arImageAnchor.referenceImageName == referenceImage.imageName) { anchorGO.transform.position = UnityARMatrixOps.GetPosition(arImageAnchor.transform); anchorGO.rotation = UnityARMatrixOps.GetRotation(arImageAnchor.transform); } } In the above code anchorGO is the model I'm trying to follow the image. The problem is this update callback isn't called very often (Once or twice after being found). I'm wondering if I can tell it to update more often or call for an update myself with specific intervals to find the image and get its position/rotation.

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>