By Norair
on Fri, 03/23/2018 - 16:19
I have a defined ImageTarget and I get it's position by
ImageTarget.transform.position; // -> Vector3(x,y,z)
But the the rotation is always the same, it doesn't change when I move/tilt my Camera
ImageTarget.transform.rotation; // Quaternion(x,y,z,w)
My Qustion Is:
If I look at the ImageTarget straigt, but the imagetarget is rotated, then how can I get this rotation value from the Imagetarget?
Hello Norair,
Hello Norair,
Well, it is set to CAMERA,
Well, it is set to CAMERA, and the object inside rotates, but I need the rotation values relative to the Camera.
The Transform of the ARCamera
The Transform of the ARCamera should have these values for you.
Thanks,
Vuforia Support