Make an object in Focal Distance always follow an object in planeTracker

Hi! Did anyone know how to make an object in Focal distance always be at the same position as an object in planeTracker? I think this can be solved with transform.applyTo() function but I am not sure how to use it as there is no sample from Spark AR document

Kamen Dimitrov has a script for converting a point into screen coordinates

1 Like

Thank you for your reply. I have found the solution but forgot to post it here. Seems like I can use Scene.unprojectToFocalPlane() function to get the world space from screen space


Oh yeah! I forgot about that one! I haven’t had a chance to use it yet, but I’m glad they added it to the API.