Script follow camera rotation

Hi all,

I’m creating a simple AR marbel game in unity using Vuforia plugin. I’m trying to create a plane that will follow rotation of AR camera, plane has initial rotation 0,0,0 and camera has 90,0,0 I tried with standard script SmootFollow but plane is rotated 90 degrees, then I tried to write my own but I failed. Has anyone tried something similar,
BTW all of you that haven’t done anything with augemented reality plugin it doesn’t matter AR camera is actually Main Camera and it uses Vuforia script to track image, so it’s just a main camera rotating as you move some image.

thanks

A quick-n-dirty way to overcome having the wrong axis alignment is simply making the plane the child of an empty, rotating it appropriately, then doing a LookAt() on the empty instead of the plane. Other options include making your own plane mesh with the correct orientation, or scripting a customized Quaternion method which can handle “pointing” at something with different axes.