Log in or register to post comments

Stuck object to their image targets.. why?

October 17, 2011 - 7:00am #1

Hi Guys,

I have this situation here: I have a ARCamera, with WorldCenterMode: NONE. So, now I just wanted to make an object rotating automatically...I wrote a script and attached the script to the object (which of course is child of an Image Target). So, this is the line:

transform.Rotate(Vector3.up * Time.deltaTime, Space.Self);

Now, the object is TOTALLY STUCK, doesn't rotate at all.. why!?!!?? I checked on unity and this is the way to apply a rotation to the localRotation member of a transform. ...

Many thanks for any help.
GC:confused:

Re: Stuck object to their image targets.. why?

October 17, 2011 - 7:23am #2

Mea culpa , it works :( grrr!

giancamati wrote:

Hi Guys,

I have this situation here: I have a ARCamera, with WorldCenterMode: NONE. So, now I just wanted to make an object rotating automatically...I wrote a script and attached the script to the object (which of course is child of an Image Target). So, this is the line:

transform.Rotate(Vector3.up * Time.deltaTime, Space.Self);

Now, the object is TOTALLY STUCK, doesn't rotate at all.. why!?!!?? I checked on unity and this is the way to apply a rotation to the localRotation member of a transform. ...

Many thanks for any help.
GC:confused:

Log in or register to post comments