Log in or register to post comments

Target Position and Rotation

May 26, 2011 - 2:36am #1

Hi,

Is it possible to get the position and rotation of your target image relative/absolute to the camera?

thanks

Re: Target Position and Rotation

May 26, 2011 - 7:35am #2

http://unity3d.com/support/documentation/ScriptReference/Transform.InverseTransformPoint.html

http://unity3d.com/support/documentation/ScriptReference/Transform.InverseTransformDirection.html

Just use the camera's transform and the trackable's transform. You can use the first method to find the relative position, and the second method to find the forward vector of the trackable from the camera's perspective.

- Kim

Log in or register to post comments