Closed curiousbee2020 closed 1 year ago
According to the docs:
Vertices are provided in face space, that is, relative to this ARFace's local position and rotation.
Try using obj.transform.localPosition
instead.
Hey thanks a ton @tdmowrer! That worked! Appreciate your help and everything you do for the community :)
No problem. Glad that worked :)
I'm using the ARFaceManager to draw an object at a point but it never works:
If I replace somePosition with face.transform.position, it works, but that's not what I want. I want to instantiate it at the position I find from face.vertices. It never instantiates at any position other than face.transform.position.
I tried setting the parent, but that doesn't work either:
It's not just vertices[x] that doesn't work, face.leftEye or face.rightEye doesn't work either.
Any ideas?